Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I would like to sort items by the "order" field of the page attributes (see pic).

enter image description here

I've come across all kinds of "custom tag" solutions but not one listing all of the already available fields you can use with orderby. I'd like to use the "order" field as shown in the editor. I'd tried replacing the orderby field in the template with "order" but I don't see any results.

I'm currently using:

post_type=projects&order=ASC&orderby=order&offset=1&posts_per_page=100
share|improve this question

1 Answer 1

Try menu_order, like so:

post_type=projects&order=ASC&orderby=menu_order&offset=1&posts_per_page=100

Vaguely related reference:
http://codex.wordpress.org/Function_Reference/wp_list_pages#Parameters

share|improve this answer
    
The issues here is, I am not using menus, and all the pages are in "Projects", so they don't appear as menu options. –  Diodeus Jul 27 '11 at 11:57

Your Answer

 
discard

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.