How to use the AutoSort setting for Advanced Taxonomy Terms Order

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

The Advanced Taxonomy Terms Order include a great functionality, the AutoSort. This helps to auto-apply the customized sorting to front side, or allow a manual apply through code.
There are 2 modes for this option, On and OFF.

ON
The query will be updated (unless you manually change that from a specific Taxonomy Order menu), any orderby parameter will be changed to term_order. Practically all queries will be forced to use the new order. This is recommended if you don’t want to change any theme code to apply the terms order.

OFF
The query will not be touched (unless you manually change that from a specific Taxonomy Order menu), all terms will be retrieved in the same order as before. To retrieve the terms per customized sorting, you must use the term_order on the orderby parameter::

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

More info on the get_terms usage can be found at http://codex.wordpress.org/Function_Reference/get_terms