From: Anthony Talarico Date: Tue, 2 Feb 2016 17:49:30 +0000 (-0500) Subject: adding cat name to text search for category since it is restricted once inside of... X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=27b27f78135eff510c0ee939b0e2f7bd682fb14b;p=WP-Plugins%2Fmichsci-products.git adding cat name to text search for category since it is restricted once inside of a category 'page' --- diff --git a/index.php b/index.php index 59f59a8..1015982 100644 --- a/index.php +++ b/index.php @@ -442,12 +442,15 @@ function michsci_shortcode($atts) $cat_id = $prodCategory->term_id; } } + $term = get_term_by("id", $_REQUEST[MICHSCI_CATEGORY_NAME],"michsci_category"); + $name = $term->name; + echo $name; global $wp; echo '
'; echo michsci_get_terms_dropdown($cat_id); echo '