moving tags output to bottom
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 28 Dec 2015 21:37:19 +0000 (16:37 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 28 Dec 2015 21:37:19 +0000 (16:37 -0500)
views/product_detail.php

index a6853df..f064b1e 100644 (file)
@@ -27,12 +27,25 @@ foreach ($tags as $tag){ ?>
 <h2><?php echo $product->post_title; ?></h2>
     <?php
     setup_postdata( $product );
-    the_content();
+    the_content(); ?>
+<?php 
    
 //    $key_value = get_post_custom_values('miproduct_features', $product->ID); 
 //    foreach($key_value as $key=>$value){
 //        echo $value;
-//    }
+//    } ?>
+    <p id="tagList"> 
+<?php
+echo '<strong> Tags: </strong>'; 
+$args = array(
+    "hide_empty"=>false
+);
+$tags = wp_get_post_terms($product->ID,'michsci_tag', $args);
+foreach ($tags as $tag){ ?>
+    
+<?php echo  $tag->name . " "; ?> 
+<?php }?>
+</p>
     $key_value = get_post_custom_values('miproduct_related_products', $product->ID); 
     foreach($key_value as $key=>$value){
         echo '<strong>Related Products: </strong>' . '<a href="#">' . $value . '</a>';