From: Anthony Talarico Date: Tue, 12 Jan 2016 19:26:09 +0000 (-0500) Subject: testing dropdown X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=fbfc29ad3ae4e7701cc4504a58bde04e226b921a;p=WP-Plugins%2Fmichsci-products.git testing dropdown --- 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 .= '