Taxonomies Sortable is WordPress plugin that allow to sort non-hierarchical taxonomy terms associated to objects directly by drag&drop them on the tags metaboxes administration interface.
This section describes how to install the plugin and get it working.
- Upload the plugin files to the
/wp-content/plugins/taxonomies-sortable
directory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the Plugins screen in WordPress.
Once the plugin is installed you can make a taxonomy sortable in the following ways:
- Programmatically, by adding
'sortable' => true
argument inregister_taxonomy()
. - Programmatically, by using
taxonomies_sortable
filter below. - Using the Settings->Taxonomies Sortable administration screen by selecting non-hierarchical taxonomies you want to make sortable.
Note that making a taxonomy sortable, implicitly means also setting sort => true
for that taxonomy.
Filter allowing to programmatically set sortable taxonomies.
apply_filters( 'taxonomies_sortable', array $taxonomies )
Filter allowing to display or not the plugin settings page in the administration.
apply_filters( 'taxonomies_sortable_admin_settings', boolean $display )
Currently no, even if the Gutenberg support is under development.
The taxonomy terms sorting drag&drop in action.
The plugin settings page.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.