Custom order of terms for custom taxonomy in admin and website

I have a custom taxonomy registered for my custom post type. I need to make it possible for a user to specify the order in which the taxonomy terms should appear (something like menu order for pages). Then when displaying the taxonomy terms on the site I will use the specified custom order to order them.

What is the best way to do it? Is there any plugin for it?

Read More

Many thanks,
Dasha

Related posts

Leave a Reply

6 comments

  1. Still looking myself.

    After some exploring I decided to use the Term Menu Order plugin by @jameslafferty. This will add menu_order to the terms table and can be used across taxonomies and templates. @TheDeadMedic seems to have enhanced this functionality over here, discussing a similar issue.

  2. I’m looking for a solution for the same issue.

    @dashaluna the bit of code you found only works for taxonomies that are registered like “tags”, tho in a non hierarchical order and sorts the taxonomy terms by entry order. ( that’s what i discovered, not 100% sure ).

    I personally use a custom field for the terms ( provided via WooThemes Content Builder – can be done with other free plugins ) and to also use that in the front-end to sort terms ordering i will be using a plain MySQL query joining the appropriate taxonomy tables with the additional one for terms meta ( custom fields ) – It ‘ll probably work for every situation but a raw query would be slower than built-in WP Queries.

  3. I came across the My Category Order plugin. However this is for the WP native categories and it adds ‘My Category Order’ link to the Posts menu where you can drag and drop categories in a required order.

    It can be changed (text search and replace) for a custom taxonomy.

    Nevertheless, would be nice to have a dedicated plugin for custom taxonomy terms reorder or know how to code it. I would be grateful for any tips.

    Thanks!