added id to product tags on product detail page
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 28 Dec 2015 19:29:14 +0000 (14:29 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 28 Dec 2015 19:29:14 +0000 (14:29 -0500)
views/product_detail.php

index 303638d..839bb85 100644 (file)
@@ -18,10 +18,10 @@ $args = array(
     "hide_empty"=>false
 );
 $tags = wp_get_post_terms($product->ID,'michsci_tag', $args);
-foreach ($tags as $tag){
+foreach ($tags as $tag){ ?>
     
-    echo  $tag->name . " ";
-}?>
+<p id="tagList"> <?php echo  $tag->name . ", "; ?> </p>
+<?php }?>
 <h2><?php echo $product->post_title; ?></h2>
     <?php
     setup_postdata( $product );