From 27b27f78135eff510c0ee939b0e2f7bd682fb14b Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Tue, 2 Feb 2016 12:49:30 -0500 Subject: [PATCH] adding cat name to text search for category since it is restricted once inside of a category 'page' --- index.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 '