From 774af746426609bac65b2692a145b36a59d1a4dc Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Mon, 28 Dec 2015 13:10:52 -0500 Subject: [PATCH] added slug names to classes for checkbox filtering --- index.php | 1 + views/list_products.php | 12 ++++++++---- views/product_detail.php | 14 +++++++++++++- 3 files changed, 22 insertions(+), 5 deletions(-) diff --git a/index.php b/index.php index f765e28..59a82bc 100644 --- a/index.php +++ b/index.php @@ -646,3 +646,4 @@ function michsci_show_category($cat_id) } add_shortcode( 'michproducts', 'michsci_shortcode' ); + diff --git a/views/list_products.php b/views/list_products.php index 1f5ee83..197b8b4 100644 --- a/views/list_products.php +++ b/views/list_products.php @@ -1,9 +1,12 @@ + +
- -
+ + ID,'michsci_tag'); ?> +
product grid small-12 medium-4 columnsend){ echo ' end';}?>">
ID, array(320, 285)); ?> @@ -17,14 +20,15 @@
-
+
-
+ID,'michsci_tag'); ?> +
product list small-12 columnsend){ echo ' end';}?>">
ID, 'post-thumbnail'); ?> diff --git a/views/product_detail.php b/views/product_detail.php index 6091c69..c3cd049 100644 --- a/views/product_detail.php +++ b/views/product_detail.php @@ -9,7 +9,19 @@ $relatives = wp_get_post_terms($product->ID, 'michsci_category', $args); echo '' . $relative->name . "" . " > "; } ?> -post_title; ?> + +post_title . "
"; ?> + +false +); +$tags = wp_get_post_terms($product->ID,'michsci_tag', $args); +foreach ($tags as $tag){ + + echo $tag->name; +}?>

post_title; ?>