added slug ids to tags link
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 31 Dec 2015 15:59:55 +0000 (10:59 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 31 Dec 2015 15:59:55 +0000 (10:59 -0500)
views/product_detail.php

index 540a936..a9210bc 100644 (file)
@@ -44,7 +44,7 @@ $relatives = wp_get_post_terms($product->ID, 'michsci_category', $args);
             );
             $tags = wp_get_post_terms($product->ID,'michsci_tag', $args);
             foreach ($tags as $tag){ ?>
-                <?php echo '<a href="'.  get_permalink(510) . '">'. $tag->name . '</a>' . "<br>"; ?> 
+                <?php echo '<a id="' . $tag->slug . '"href="'.  get_permalink(510) . '">'. $tag->name . '</a>' . "<br>"; ?> 
             <?php }?>
         </div>
 </div>