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?
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
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_orderargument 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…
Method 2
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.
Method 3
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.
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0