mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-30 18:24:31 +00:00
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:
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user