How to Sort Terms in a Filter in a Custom Order
Since version 1.3 the taxonomy filter block allows you to change an “order by” parameter for terms displayed in the filter. And more than that – for each filter individually.
The possible options are:
- A → Z (alphabetically),
- Post count, the terms with the most posts will be displayed first,
- Term group
And now let’s talk about term group because it allows you to set a custom order for your terms. First of all, let’s configure it in a specific taxonomy filter block settings:

Now, you need to modify a term group parameter for your taxonomy terms which are displayed in the filter. The thing is that a lot of plugins that allow to set a custom term ordering aren’t using a term_group parameter instead they complicate things a lot by creating an extra database table column term_order and modifying queries.
I don’t like when things become that complicated, so I created my own mini-plugin for WordPress which allows you to change a term group parameter.
You can download Edit Term Group plugin from the WordPress plugins repository.
Editing a term group is super easy:
