testing dropdown
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 12 Jan 2016 19:10:39 +0000 (14:10 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 12 Jan 2016 19:10:39 +0000 (14:10 -0500)
index.php

index d9b29f9..c69d125 100644 (file)
--- a/index.php
+++ b/index.php
@@ -484,6 +484,7 @@ function michsci_get_terms_dropdown($cat_id)
     if($cat_id){
         $cats_child = get_term_children($cat_id, $taxonomyName);
         foreach($cats_child as $cat){
+            echo $cat;
          $output ="<select id='categoryDropdown' name=\"" . MICHSCI_CATEGORY_NAME . "\"><option value=\"\">Select " . MICHSCI_CATEGORY_SINGLE . "</option>";
         $main = get_term($cat_id, MICHSCI_CATEGORY_NAME);
           $output .= '<option value="' . $cat . '"';
@@ -495,6 +496,8 @@ function michsci_get_terms_dropdown($cat_id)
          $output .="</select>";
         }
     } else {
+        
+        
     $parent_terms = get_terms($taxonomyName, array('parent' => 0, 'orderby' => 'name', 'hide_empty' => false));
     $output ="<select id='categoryDropdown' name=\"" . MICHSCI_CATEGORY_NAME . "\"><option value=\"\">Select " . MICHSCI_CATEGORY_SINGLE . "</option>";
         // get parent categories