Only output blog feed if one of the defined pages
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 12 Jun 2015 14:56:57 +0000 (10:56 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 12 Jun 2015 14:56:57 +0000 (10:56 -0400)
Also add Art as one of the checked post page names.

parts/blog-feed.php

index 9020202..f8e3325 100644 (file)
@@ -1,10 +1,11 @@
-<?php 
-if (is_page(array("events","recreation","sailing","tennis","activities","beach"))) { 
+<?php
+if (is_page(array('art', "events","recreation","sailing","tennis","activities","beach"))) {
     $cat_name = get_query_var('name');
-} else if (is_front_page()) { 
+} else if (is_front_page()) {
     $cat_name = "Home Page";
 } else {
     $cat_name = "";
+    return;
 }
 ?>
 
@@ -37,4 +38,4 @@ if (is_page(array("events","recreation","sailing","tennis","activities","beach")
                 </div>
             </div>
         </div>
-    <?php } ?>
\ No newline at end of file
+    <?php } ?>