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:
ryan 2007-10-23 16:39:03 +00:00
parent 6566f35303
commit 0474421643
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';