6

I'd like to employ a sort order option in my theme to allow categories to be sorted similar to pages. Can anyone recommend a plugin that does this?

7

I needed this requirement a while back. There's a selection of plugins available, but nothing took my fancy. They were (in my opinion) either too bloated, poorly written, or the UI was either lacking or overly complex.

Then I stumbled upon Term Menu Order. Essentially it adds a menu_order field to the terms database, and you use it the same way as the menu order for pages. Very simple, does the job!

NB: I actually took the concept and rewrote in what I considered an improvement.

  • It's oh-so-slightly less heavy on memory
  • Adds a simple orderby=term_order argument available for term function
  • Can control which taxonomies support ordering, either through the register_taxonomy() call or with WordPress hooks
  • Fixes one particular flaw - same terms in different taxonomies will share the same order, my plugin fixed this

If this takes your fancy I can share :)

My spin on the Term Order Plugin (MediaFire)

The MediaFire upload has had it's day, apologies. Will get a replacement set-up, perhaps on GitHub, soon...

  • Do you share the code of the rewritten plugin? – kaiser Mar 17 '11 at 1:54
  • @TheDeadMedic: Its working great for items where i can add the &orderby=term_order filter to. However, I can't get the default WP categories widget to obey the order. Should I have to do anything special to make it work there too? – Scott B Apr 11 '11 at 16:02
  • Hi @Scott B @TheDeadMedic @jameslafferty This is what I'm looking for exactly! Would it be possible to repost the code please? The MediaFire link is broken... Many thanks! – Flo Jun 13 '11 at 15:13
  • @Flo You still need it? Errm, rather embarrassing, but I lost it! If @Scott B still has it, could you help us out? Otherwise I plan on writing a super-awesome fork with drag & drop! Watch this space... – TheDeadMedic Jun 25 '11 at 14:18
  • You lost it? What a shame. :( @Scott B: do you still have the code? Please, share. Thanks! – Geert Nov 20 '11 at 17:14
1

Bill Erickson and I recently updated the Term Menu Order plugin (which had fallen into disrepair). I actually came back here to see if TheDeadMedic's solution was still available to use in improving the plugin some more... sorry to see that it's not up.

  • Thank you for your update! I'm going to grab it and work with it today. – Jonathan Wold Dec 5 '11 at 22:13
0

I have just released a plugin that attempts to tackle this issue: http://wordpress.org/extend/plugins/custom-taxonomy-sort/. All you do it add the order for the individual terms, much like with pages, and the sorting is magically done for you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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