Sort pages in loop by admin's page attributes order field?
Question
Is it possible to sort pages in the loop using the admin's order field (under page attributes)?
Solution
Yes, use the orderby
and order
clause in your query posts.
query_posts( array('orderby'=>'menu_order', 'order' => 'ASC' ) );
See: WP_Query#Order for reference
Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange