WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?


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
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