Fix ordering. Closes #2229.

This commit is contained in:
Mike Jolley 2013-01-15 12:10:03 +00:00
parent d37eefff6d
commit 31be242a6b
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ global $woocommerce, $product, $post;
switch ( $orderby ) {
case 'name' :
$terms = get_terms( sanitize_title($name), array('menu_order' => 'ASC', 'hide_empty' => false) );
$args = array( 'orderby' => 'name', 'hide_empty' => false, 'menu_order' => false );
break;
case 'id' :
$args = array( 'orderby' => 'id', 'order' => 'ASC', 'menu_order' => false );