From: Anthony Talarico Date: Tue, 2 Feb 2016 15:35:41 +0000 (-0500) Subject: added another level of sub categories in dropdown X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=9a8661fdc4566f85c522f1bff2bdd9498e702a28;p=WP-Plugins%2Fmichsci-products.git added another level of sub categories in dropdown --- diff --git a/index.php b/index.php index bb63332..59f59a8 100644 --- a/index.php +++ b/index.php @@ -528,11 +528,19 @@ function michsci_get_terms_dropdown($cat_id) } $output .= '>' . "   " . $child->name . ''; foreach($grandchildren as $gchild){ + $ggrandchildren = get_terms($taxonomyName, array('parent'=> $gchild->term_id, 'child_of' => $gchild->term_id, 'orderby' => 'name', 'hide_empty' => false)); $output .= ''; + foreach($ggrandchildren as $ggchild){ + $output .= ''; + } } } }