projects
/
WP-Themes
/
Wequetonsing.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c7b174
)
Only output blog feed if one of the defined pages
author
Steve Sutton
<steve@gaslightmedia.com>
Fri, 12 Jun 2015 14:56:57 +0000
(10:56 -0400)
committer
Steve 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
patch
|
blob
|
history
diff --git
a/parts/blog-feed.php
b/parts/blog-feed.php
index
9020202
..
f8e3325
100644
(file)
--- a/
parts/blog-feed.php
+++ b/
parts/blog-feed.php
@@
-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 } ?>