added additional sub cat drop down space
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 19 Jan 2016 21:46:25 +0000 (16:46 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 19 Jan 2016 21:46:25 +0000 (16:46 -0500)
index.php

index 5d68dfc..63bb1eb 100644 (file)
--- a/index.php
+++ b/index.php
@@ -511,7 +511,7 @@ function michsci_get_terms_dropdown($cat_id)
             }
             $output .= '>' . $parent->name . '</option>';
             foreach($child_terms as $child){
-                $grandchildren = get_terms($taxonomyName, array( 'child_of' => $child->term_id, 'orderby' => 'name', 'hide_empty' => false));
+                $grandchildren = get_terms($taxonomyName, array('parent'=> $child->term_id, 'child_of' => $child->term_id, 'orderby' => 'name', 'hide_empty' => false));
                  $output .= '<option value="' . $child->term_id . '"';
                 if ($_REQUEST[MICHSCI_CATEGORY_NAME] == $child->term_id) {
                     $output .= ' selected';