The Taxonomy Sort
Most commonly taxonomy sorting plugins will create a new interface to drag or order/sort your terms. This plugin uses the built-in view just to make things easier. Just grab the term and drag it to a new position. No more extra clicks – everything is saved after repositioning! The order is applied t
Most commonly taxonomy sorting plugins will create a new interface to drag or order/sort your terms. This plugin uses the built-in view just to make things easier. Just grab the term and drag it to a new position. No more extra clicks – everything is saved after repositioning!
The order is applied to term queries that did not ask for an order of their own. A query that explicitly sorts by count, slug, term order or anything else gets what it asked for, so themes and plugins that sort terms themselves are left alone.
- 01Upload the-taxonomy-sort/ folder to the /wp-content/plugins/ directory
- 02Activate the plugin through the ‘Plugins’ menu in WordPress
- 03Go to taxonomy page (for example Posts -> Categories) and drag the table rows to change ordering.
Frequently asked questions.
Is there a way to disable it for some taxonomies?
Yes, as of version 2.1. Return the taxonomies it should apply to, and it applies to no others:
add_filter( 'the_taxonomy_sort_define_taxonomies', function () { return array( 'category', 'product_cat' ); } );
For a decision per query – one taxonomy sorted in the admin but not on the front end, say – there is the_taxonomy_sort_is_sortable :
add_filter( 'the_taxonomy_sort_is_sortable', function ( $sortable, $taxonomies, $args ) { return is_admin() ? $sortable : false; }, 10, 3 );
Does it work with hierarchical taxonomies?
Yes. Terms are ordered among their siblings; WordPress still nests children under their parent, so dragging a child to the top of the list moves it to the top of its own branch.
Who is allowed to reorder terms?
Whoever may manage that taxonomy’s terms – the same capability WordPress checks before showing the taxonomy screen.