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.

How do I specify a sort order for a custom post-type like I can do with the pages post-type?

All I have been able to find online is various plugins that do it for me, but I'd prefer not to use a plugin and just insert the code myself.

Any suggestions?

Thanks

share|improve this question

closed as too localized by toscho Jul 20 '12 at 23:38

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
sort order by what? would be great if you clarify a little more your question :) –  andresmijares25 Nov 14 '11 at 18:31
1  
I figured it out. I needed to sort by menu_order, so I just added support for that when I registered the post-type. –  jasonaburton Nov 14 '11 at 20:42
    
Hey Jason, how about posting that has an answer that can be accepted to mark this as solved? –  Jonathan Wold Jan 10 '12 at 19:54
add comment

Browse other questions tagged or ask your own question.