From: Anthony Talarico Date: Tue, 2 Feb 2016 17:53:34 +0000 (-0500) Subject: added "all products" string to non-category page X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=3b875e63f3c36e01ccbc7c4bee612fce7476b4b5;p=WP-Plugins%2Fmichsci-products.git added "all products" string to non-category page --- 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 '