testing subcat view
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 13 Jan 2016 16:50:36 +0000 (11:50 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 13 Jan 2016 16:50:36 +0000 (11:50 -0500)
views/list_products.php

index 61e2bdf..9536dab 100644 (file)
@@ -5,7 +5,7 @@
        echo category_description($cat_id);
        $cat_children = get_term_children($cat_id, MICHSCI_CATEGORY_NAME);
     ?>
-     <?php if(isset($_COOKIE['subcat'])){ ?>
+     <?php if($_COOKIE['subcat'] == "subcat"){ ?>
         <?php foreach($cat_children as $cats){
             $term = get_term($cats, MICHSCI_CATEGORY_NAME); ?>
             <?php $tags = wp_get_post_terms($product->ID,'michsci_tag'); ?>