projects
/
WP-Plugins
/
michsci-products.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58ddb10
)
added id to product tags on product detail page
author
Anthony Talarico
<talarico@gaslightmedia.com>
Mon, 28 Dec 2015 19:29:14 +0000
(14:29 -0500)
committer
Anthony Talarico
<talarico@gaslightmedia.com>
Mon, 28 Dec 2015 19:29:14 +0000
(14:29 -0500)
views/product_detail.php
patch
|
blob
|
history
diff --git
a/views/product_detail.php
b/views/product_detail.php
index
303638d
..
839bb85
100644
(file)
--- a/
views/product_detail.php
+++ b/
views/product_detail.php
@@
-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 );