From 340e17ac6c93e68588371d296f5cba1bdd085f2c Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Wed, 20 Jan 2016 12:55:13 -0500 Subject: [PATCH] testing print out of IDs of posts --- parts/sidebar-l.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parts/sidebar-l.php b/parts/sidebar-l.php index 1c7d264..abdb8e7 100644 --- a/parts/sidebar-l.php +++ b/parts/sidebar-l.php @@ -19,7 +19,6 @@ $myPost = get_posts(array( 'post_type' => 'miproduct', - 'suppress_filters' => false, 'tax_query' => array( array( 'taxonomy' => 'michsci_category', @@ -29,7 +28,8 @@ ); foreach($myPost as $myPosts){ - $term_list = wp_get_post_terms($myPosts->ID, "michsci_tag", array("fields" => "all")); + echo $myPosts->ID; + $term_list = wp_get_post_terms($myPosts->ID, "michsci_tag"); foreach($term_list as $myTerms){ echo '' ."
"; } -- 2.17.1