From 9a8661fdc4566f85c522f1bff2bdd9498e702a28 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Tue, 2 Feb 2016 10:35:41 -0500 Subject: [PATCH] added another level of sub categories in dropdown --- index.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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 .= ''; + } } } } -- 2.17.1