}
$output .= '>' . "   " . $child->name . '</option>';
foreach($grandchildren as $gchild){
+ $ggrandchildren = get_terms($taxonomyName, array('parent'=> $gchild->term_id, 'child_of' => $gchild->term_id, 'orderby' => 'name', 'hide_empty' => false));
$output .= '<option value="' . $gchild->term_id . '"';
if ($_REQUEST[MICHSCI_CATEGORY_NAME] == $gchild->term_id) {
$output .= ' selected';
}
$output .= '>' . "      " . $gchild->name . '</option>';
+ foreach($ggrandchildren as $ggchild){
+ $output .= '<option value="' . $ggchild->term_id . '"';
+ if ($_REQUEST[MICHSCI_CATEGORY_NAME] == $ggchild->term_id) {
+ $output .= ' selected';
+ }
+ $output .= '>' . "            " . $ggchild->name . '</option>';
+ }
}
}
}