Fix ordering. Closes #2229.
This commit is contained in:
parent
d37eefff6d
commit
31be242a6b
|
@ -43,7 +43,7 @@ global $woocommerce, $product, $post;
|
||||||
|
|
||||||
switch ( $orderby ) {
|
switch ( $orderby ) {
|
||||||
case 'name' :
|
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;
|
break;
|
||||||
case 'id' :
|
case 'id' :
|
||||||
$args = array( 'orderby' => 'id', 'order' => 'ASC', 'menu_order' => false );
|
$args = array( 'orderby' => 'id', 'order' => 'ASC', 'menu_order' => false );
|
||||||
|
|
Loading…
Reference in New Issue