Commit de26c331 authored by imac's avatar imac

[Update]: Sort product list by name

parent 2a818dab
...@@ -114,7 +114,7 @@ $child_category = get_terms('product_cat', array('parent' => $cateID, 'child_of' ...@@ -114,7 +114,7 @@ $child_category = get_terms('product_cat', array('parent' => $cateID, 'child_of'
<h2 class="crete small-title"><?php echo $value->name ?></h2> <h2 class="crete small-title"><?php echo $value->name ?></h2>
<div class="product-list"> <div class="product-list">
<?php <?php
$args = array('post_type' => 'product', 'stock' => 1, 'posts_per_page' => -1, 'product_cat' => $value->name); $args = array('post_type' => 'product', 'stock' => 1, 'posts_per_page' => -1, 'product_cat' => $value->name, 'orderby' => 'title' , 'order' => 'ASC');
$naps_posts = new WP_Query($args); $naps_posts = new WP_Query($args);
$options = array(); $options = array();
......
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