Change order of Slider

I’m currently using the slider with pages (instead of posts) but the order I’ve created (using the order number selection under attributes under each page) is backwards. I’ve tried switching all the numbers but it will not play in the order that I’d like.

Please help.


Hi @kbhmedia,

I hope you are well today and thank you for your question.

You can try achieving this by setting orderby argument of WP_Query to ‘menu_order’ as displayed below.

$query = new WP_Query( array( 'cat' =>$slidecat,'posts_per_page' =>$count, 'post_type' => 'page', 'orderby' => 'menu_order' ) );

Best Regards,