From 3b875e63f3c36e01ccbc7c4bee612fce7476b4b5 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Tue, 2 Feb 2016 12:53:34 -0500 Subject: [PATCH] added "all products" string to non-category page --- index.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.php b/index.php index 1015982..0a0e320 100644 --- a/index.php +++ b/index.php @@ -444,6 +444,10 @@ function michsci_shortcode($atts) } $term = get_term_by("id", $_REQUEST[MICHSCI_CATEGORY_NAME],"michsci_category"); $name = $term->name; + + if(!$name){ + $name = "ALL PRODUCTS"; + } echo $name; global $wp; echo '
-- 2.17.1