Allows theme developers to add order/sort functionality for categories, tags and custom taxonomies.
Plugin can be used for reordering categories, tags and custom taxonomies. This plugin is primarily intended as an aid to theme developers.
Plugin supports multisite installation.
The minimum requirement is that you have at least WordPress 3.5 installed.
Fetching sorted terms from custom taxonomy will be enabled by default:
$terms = get_terms( 'your-taxonomy-name' );
If you wish to sort by name (disable plugin’s custom sorting) you will have to set ‘i_order_terms’ to ‘false’:
$terms = get_terms( 'your-taxonomy-name', 'i_order_terms=0' );
Plugin ads new column to ‘term_taxonomy’ table, make sure to backup your database before installing. Column is removed when you delete plugin.
You can use settings page or add code in your function file. There are two options you can use to make taxonomy sortable:
1) You can enable sorting when registering taxonomy:
register_taxonomy( 'your-taxonomy-name', 'your-post-type', array( 'label' => __('Category'), // this parameter is used to enable // sorting for taxonomy 'your-taxonomy-name' 'i_order_terms' => true, ));
2) Other option is to pass array of taxonomies (or tags/categories) via filter “i_order_terms_taxonomies” in your functions file like this:
function custom_i_order_terms_taxonomies($taxonomies) { $taxonomies = array_merge($taxonomies, array('taxonomy', 'category')); return $taxonomies; } add_filter('i_order_terms_taxonomies', 'custom_i_order_terms_taxonomies');
This will enable taxonomy sorting for ‘taxonomy’ and ‘category’ taxonomies.
Naturally you will have to provide your taxonomy names.
Yes, it will work on multisite installation.
User needs to have “manage_categories” permission to be able to order terms.
You can report bugs from contact form on my website at http://www.igorware.com/contact.
Please make sure to include plugin version when reporting bugs.