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

share|improve this question

3 Answers 3

up vote 7 down vote accepted

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

share|improve this answer
    
Do you share the code of the rewritten plugin? –  kaiser Mar 17 '11 at 1:54
    
@TDM: Thanks. I'll be checking this out tonight. –  Scott B Mar 18 '11 at 0:18
    
@TDM, works great. +1 Thanks! –  Scott B Mar 23 '11 at 15:06
    
@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

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.

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

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.

share|improve this answer

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.