Taxonomy Terms Order and Auto Sort, Admin Sort description an usage

Share on FacebookTweet about this on TwitterShare on Google+Share on LinkedInPrint this page

The Taxonomy Terms Order plugin is an easy way to control the sort for any taxonomies.  The order is applied to the front side using the arguments:

‘orderby’ => ‘term_order’,

Example:


$argv = array(	 	 
		'orderby' => 'term_order' 	 
		);	 	 
get_terms('category', $argv);

 

 

Autosort OFF
No query sort will be changed, the terms will appear in the original order, per orderby argument. To retrieve the terms in the customised order you must use the term_order on the orderby parameter:


$argv = array(	 	 
		'orderby' => 'term_order',	 	 
		'hide_empty' => false	 	 
		);	 	 
get_terms('category', $argv);

See more info on the get_terms usage here

Autosort ON
The queries will be updated, and all terms will appear in the order you manually defined. This is recommended if you don’t want to change any theme code to apply the terms order

When using the AutoSort, you can still disable specific queries to use the customised order by add the ignore_term_order argument:

$argv = array(	 	 
		'ignore_term_order' => TRUE	 
		);	 	 
get_terms('category', $argv);

 

Admin Sort
The code queries will be updated within the admin interface, the sort will also apply on this area too.