Question

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?

Was it helpful?

Solution

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

OTHER TIPS

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.

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange
scroll top