reverting name changes to slug
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 31 Dec 2015 15:47:46 +0000 (10:47 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 31 Dec 2015 15:47:46 +0000 (10:47 -0500)
views/list_products.php

index 818a897..197b8b4 100644 (file)
@@ -6,7 +6,7 @@
     <?php if ( isset( $products ) && is_array( $products ) ) : foreach ( $products as $product ) : ?>
         
    <?php $tags = wp_get_post_terms($product->ID,'michsci_tag'); ?>
-        <div class="<?php foreach ($tags as $tag)echo $tag->name . " ";?> product grid small-12 medium-4 columns<?php if ($product->end){ echo ' end';}?>">
+        <div class="<?php foreach ($tags as $tag)echo $tag->slug . " ";?> product grid small-12 medium-4 columns<?php if ($product->end){ echo ' end';}?>">
 
                 <div class="prodImgGrid small-12 columns"><a href="<?php echo $product->href; ?>">
                     <?php echo get_the_post_thumbnail( $product->ID, array(320, 285)); ?></a>
@@ -28,7 +28,7 @@
     <?php if ( isset( $products ) && is_array( $products ) ) : foreach ( $products as $product ) : ?>
 <!--    <div class="row view">-->
 <?php $tags = wp_get_post_terms($product->ID,'michsci_tag'); ?>
- <div class="<?php foreach ($tags as $tag)echo $tag->name . " ";?>product list small-12 columns<?php if ($product->end){ echo ' end';}?>">
+ <div class="<?php foreach ($tags as $tag)echo $tag->slug . " ";?>product list small-12 columns<?php if ($product->end){ echo ' end';}?>">
            
                 <div class="prodImgList small-12 large-3 columns"><a href="<?php echo $product->href; ?>">
             <?php echo get_the_post_thumbnail( $product->ID, 'post-thumbnail'); ?></a>