testing print out of IDs of posts
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 20 Jan 2016 17:55:13 +0000 (12:55 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 20 Jan 2016 17:55:13 +0000 (12:55 -0500)
parts/sidebar-l.php

index 1c7d264..abdb8e7 100644 (file)
@@ -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 '<label class="checkboxLabel"><input class="tagOptions" type="checkbox" name="' . $myTerms->name . '" value="' . $myTerms->slug . '"' . '>' . " " . $myTerms->name . '</label>' ."<br>";
                   }