From: Anthony Talarico Date: Fri, 29 Jan 2016 17:49:06 +0000 (-0500) Subject: testing for catid before display cat ancestors X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=2d7de2af8da6230afc32996a108b809fb7c921fe;p=WP-Plugins%2Fmichsci-products.git testing for catid before display cat ancestors --- diff --git a/views/list_categories.php b/views/list_categories.php index 84c7a5d..68b4934 100644 --- a/views/list_categories.php +++ b/views/list_categories.php @@ -1,7 +1,8 @@ "); ?> - + if($cat_id){ + $ancestors = get_category_parents($cat_id, false, " > "); ?> + }
' . Products . ''." > "; ?>