reverting changes
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 20 Jan 2016 15:06:33 +0000 (10:06 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 20 Jan 2016 15:06:33 +0000 (10:06 -0500)
parts/sidebar-l.php

index 301a15c..c786cd2 100644 (file)
@@ -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 '<label class="checkboxLabel"><input class="tagOptions" type="checkbox" name="' . $terms->name . '" value="' . $terms->slug . '"' . '>' . " " . $terms->name . '</label>' ."<br>";
-                  }
-              }
+//              $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 '<label class="checkboxLabel"><input class="tagOptions" type="checkbox" name="' . $terms->name . '" value="' . $terms->slug . '"' . '>' . " " . $terms->name . '</label>' ."<br>";
+//                  }
+//              }
         
-//              $tags = get_terms("michsci_tag", $args);
-//              foreach($tags as $tag){
-//                  echo '<label class="checkboxLabel"><input class="tagOptions" type="checkbox" name="' . $tag->name . '" value="' . $tag->slug . '"' . '>' . " " . $tag->name . '</label>' ."<br>";
+              $tags = get_terms("michsci_tag", $args);
+              foreach($tags as $tag){
+                  echo '<label class="checkboxLabel"><input class="tagOptions" type="checkbox" name="' . $tag->name . '" value="' . $tag->slug . '"' . '>' . " " . $tag->name . '</label>' ."<br>";
+              }
              ?>
                
                 <input type="hidden" name="searchType" value="blog" /> </div>