From fbfc29ad3ae4e7701cc4504a58bde04e226b921a Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Tue, 12 Jan 2016 14:26:09 -0500 Subject: [PATCH] testing dropdown --- index.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index dedc8f1..b688943 100644 --- a/index.php +++ b/index.php @@ -481,12 +481,14 @@ function michsci_shortcode($atts) function michsci_get_terms_dropdown($cat_id) { $taxonomyName = MICHSCI_CATEGORY_NAME; + if($cat_id){ + + $main = get_term($cat_id, MICHSCI_CATEGORY_NAME); $cats_child = get_term_children($cat_id, $taxonomyName); - $output =""; foreach($cats_child as $cat){ echo $cat . " "; - $main = get_term($cat_id, MICHSCI_CATEGORY_NAME); $output .= '