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:
Ryan Boren 2007-10-23 16:39:03 +00:00
parent 8f5df55d26
commit 61d75c2593
1 changed files with 4 additions and 0 deletions

View File

@ -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';