From: Anthony Talarico Date: Wed, 20 Jan 2016 17:25:17 +0000 (-0500) Subject: testing changes to dynamic features checkbox X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=74be7c935ecca5fc8ade4375283c6607ae0742a7;p=WP-Themes%2Fmichsci.git testing changes to dynamic features checkbox --- diff --git a/parts/sidebar-l.php b/parts/sidebar-l.php index 03c6a29..1c7d264 100644 --- a/parts/sidebar-l.php +++ b/parts/sidebar-l.php @@ -9,9 +9,13 @@ "hierarchical"=>true, "parent"=>0 ); - -// $cat_id = get_query_var('michsci_category'); - $cat_id = $_REQUEST['michsci_category']; + $cat_id = $_REQUEST['michsci_category']; + if(!($cat_id)){ + $tags = get_terms("michsci_tag", $args); + foreach($tags as $tag){ + echo '' ."
"; + } + } else { $myPost = get_posts(array( 'post_type' => 'miproduct', @@ -30,11 +34,7 @@ echo '' ."
"; } } - -// $tags = get_terms("michsci_tag", $args); -// foreach($tags as $tag){ -// echo '' ."
"; -// } + } ?>