From: Anthony Talarico Date: Tue, 19 Jan 2016 21:43:08 +0000 (-0500) Subject: added third level dropdown X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=e0cecee7a6175a8335484cb739ab51d10247b44b;p=WP-Plugins%2Fmichsci-products.git added third level dropdown --- diff --git a/index.php b/index.php index e986a66..5d68dfc 100644 --- a/index.php +++ b/index.php @@ -482,7 +482,6 @@ 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); @@ -499,25 +498,36 @@ function michsci_get_terms_dropdown($cat_id) } else { $parent_terms = get_terms($taxonomyName, array('parent' => 0, 'orderby' => 'name', 'hide_empty' => false)); + $terms = get_terms($taxonomyName, array('orderby' => 'name', 'hide_empty' => false)); + $output =""; } return $output; }