Commit ef77608b authored by imac's avatar imac

[Update]Sort category by name

parent 5601f964
...@@ -290,7 +290,7 @@ function nap_menu() { ...@@ -290,7 +290,7 @@ function nap_menu() {
$menu = ""; $menu = "";
$taxonomy = 'product_cat'; $taxonomy = 'product_cat';
$orderby = 'id'; $orderby = 'title';
$show_count = 0; $show_count = 0;
$pad_counts = 0; $pad_counts = 0;
$hierarchical = 1; $hierarchical = 1;
......
...@@ -25,7 +25,7 @@ $cate = get_queried_object(); ...@@ -25,7 +25,7 @@ $cate = get_queried_object();
$cateID = $cate->term_id; $cateID = $cate->term_id;
//SubCats //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; ?>"> <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