Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Is it possible to sort pages in the loop using the admin's order field (under page attributes)?

share|improve this question

1 Answer 1

up vote 6 down vote accepted

Yes, use the orderby clause in your query posts.

query_posts( array('orderby'=>'menu_order' ) );

See: for reference

share|improve this answer
Awesome - thank you! – Ryan Mar 9 '11 at 0:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.