fixing subcat img href location
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 14 Jan 2016 15:04:20 +0000 (10:04 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 14 Jan 2016 15:04:20 +0000 (10:04 -0500)
views/list_products.php

index 765649b..a55da8d 100644 (file)
@@ -15,7 +15,7 @@
             $term = get_term($cats, MICHSCI_CATEGORY_NAME); ?>
             <?php $tags = wp_get_post_terms($product->ID,'michsci_tag'); ?>
             <div class="subcat <?php echo $term->slug;?> grid small-12 medium-4 columns<?php if ($product->end){ echo ' end';}?>">
-                <div class="prodImgGrid small-12 columns"><a href="<?php echo $product->href; ?>">
+                <div class="prodImgGrid small-12 columns"><a href="<?php echo $cat->href . $term->term_id; ?>">
                      <img id="catImg" src="<?php echo z_taxonomy_image_url($cats, array(320, 285)); ?>" class="image wp-post-image no-display" alt=" "  title="<?php echo $term->name; ?>" itemprop="image">
                 </div>