From 40bf9e376f78f52b73297fd501cb60ff22d207bb Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Wed, 20 Jan 2016 10:06:33 -0500 Subject: [PATCH] reverting changes --- parts/sidebar-l.php | 43 ++++++++++++++++++++++--------------------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/parts/sidebar-l.php b/parts/sidebar-l.php index 301a15c..c786cd2 100644 --- a/parts/sidebar-l.php +++ b/parts/sidebar-l.php @@ -9,28 +9,29 @@ "hierarchical"=>true, "parent"=>0 ); - $cat_id = get_query_var('michsci_category'); - - $myPost = get_posts(array( - 'post_type' => 'miproduct', - 'tax_query' => array( - array( - 'taxonomy' => 'michsci_category', - 'field' => 'term_id', - 'terms' => $cat_id) - )) - ); - - foreach($myPost as $posts){ - $term_list = wp_get_post_terms($posts->ID, "michsci_tag", array("fields" => "all")); - foreach($term_list as $terms){ - echo '' ."
"; - } - } +// $cat_id = get_query_var('michsci_category'); +// +// $myPost = get_posts(array( +// 'post_type' => 'miproduct', +// 'tax_query' => array( +// array( +// 'taxonomy' => 'michsci_category', +// 'field' => 'term_id', +// 'terms' => $cat_id) +// )) +// ); +// +// foreach($myPost as $posts){ +// $term_list = wp_get_post_terms($posts->ID, "michsci_tag", array("fields" => "all")); +// foreach($term_list as $terms){ +// echo '' ."
"; +// } +// } -// $tags = get_terms("michsci_tag", $args); -// foreach($tags as $tag){ -// echo '' ."
"; + $tags = get_terms("michsci_tag", $args); + foreach($tags as $tag){ + echo '' ."
"; + } ?> -- 2.17.1