From: Anthony Talarico Date: Wed, 20 Jan 2016 17:55:13 +0000 (-0500) Subject: testing print out of IDs of posts X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=340e17ac6c93e68588371d296f5cba1bdd085f2c;p=WP-Themes%2Fmichsci.git testing print out of IDs of posts --- 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 '' ."
"; }