'is_page' doesn't work for the blog section?
-
Hi,
Recently began implementing some php in the form of the very useful:
is_page ()
But then I did a check for if the page was the blog so:
<?php if (is_page('Life Coaching Service')) {?> ORANGE <?php } elseif (is_page('Personal Trainer Services')) {?> GREEN <?php } elseif (is_page('Blog')) {?> BLUE <?php } else { ?> MAIN <?php }?>
But the blog isn’t a page as such, like the others. Any suggestions on how to run a check for it?
Thanks
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘'is_page' doesn't work for the blog section?’ is closed to new replies.