Commit ef77608b authored by imac's avatar imac

[Update]Sort category by name

parent 5601f964
......@@ -290,7 +290,7 @@ function nap_menu() {
$menu = "";
$taxonomy = 'product_cat';
$orderby = 'id';
$orderby = 'title';
$show_count = 0;
$pad_counts = 0;
$hierarchical = 1;
......
......@@ -25,7 +25,7 @@ $cate = get_queried_object();
$cateID = $cate->term_id;
//SubCats
$child_category = get_terms('product_cat', array('parent' => $cateID, 'child_of' => the_category_ID(), 'exclude' => $cateID, 'orderby' => 'id', 'order' => 'ASC'));
$child_category = get_terms('product_cat', array('parent' => $cateID, 'child_of' => the_category_ID(), 'exclude' => $cateID, 'orderby' => 'title', 'order' => 'ASC'));
?>
<div class="container clearfix" id="catalogue" data-page = "<?php echo $cateID; ?>">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment