mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-10 18:37:58 +01:00
Add option for ordering retrieved terms by slug or term_group. Props michelwp. fixes #5245
git-svn-id: http://svn.automattic.com/wordpress/trunk@6284 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6566f35303
commit
0474421643
@ -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