Add option for ordering retrieved terms by slug or term_group. Props michelwp. fixes #5245
git-svn-id: https://develop.svn.wordpress.org/trunk@6284 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8f5df55d26
commit
61d75c2593
@ -559,6 +559,10 @@ function &get_terms($taxonomies, $args = '') {
|
||||
$orderby = 'tt.count';
|
||||
else if ( 'name' == $orderby )
|
||||
$orderby = 't.name';
|
||||
else if ( 'slug' == $orderby )
|
||||
$orderby = 't.slug';
|
||||
else if ( 'term_group' == $orderby )
|
||||
$orderby = 't.term_group';
|
||||
else
|
||||
$orderby = 't.term_id';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user