From: Anthony Talarico Date: Tue, 12 Jan 2016 19:32:08 +0000 (-0500) Subject: restricted dropdown need to fix link X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=d84c7efad508d6e9153eff6b820ea0345ba5a4bd;p=WP-Plugins%2Fmichsci-products.git restricted dropdown need to fix link --- diff --git a/index.php b/index.php index 138ab36..5e66988 100644 --- a/index.php +++ b/index.php @@ -483,23 +483,20 @@ 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 . " "; $output .= ''; + $output .= '>' . "   " . $catName->name. ''; } $output .=""; } else { - $parent_terms = get_terms($taxonomyName, array('parent' => 0, 'orderby' => 'name', 'hide_empty' => false)); $output ="