From 1fcb0351e39be4a5613d9a8a52ff8b70f439c62a Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Mon, 28 Dec 2015 16:51:40 -0500 Subject: [PATCH] added row to keep tags and related products grouped --- views/product_detail.php | 34 ++++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/views/product_detail.php b/views/product_detail.php index d18f92a..b516b97 100644 --- a/views/product_detail.php +++ b/views/product_detail.php @@ -34,22 +34,28 @@ foreach ($tags as $tag){ ?> // foreach($key_value as $key=>$value){ // echo $value; // } ?> -

- Tags: '; -$args = array( - "hide_empty"=>false -); -$tags = wp_get_post_terms($product->ID,'michsci_tag', $args); -foreach ($tags as $tag){ ?> + +

+
+ Tags: '; + $args = array( + "hide_empty"=>false + ); + $tags = wp_get_post_terms($product->ID,'michsci_tag', $args); + foreach ($tags as $tag){ ?> -name . " "; ?> - -

name . " "; ?> + +

+
+
+ ID); foreach($key_value as $key=>$value){ echo 'Related Products: ' . '' . $value . ''; - } - -?> + }?> +
+
+ -- 2.17.1