Conditional if not multiple page and if not blog
-
I need to write a conditional statement that says: if not these pages AND is not the blog then…
NOTE: The blog is not the front page but is set as it’s own static page in Settings > Reading.
The following works for the ‘not pages’ part:
<?php if( !is_page(array(8211,4177,5019,11)) ) : ?> information here <?php endif; ?>
But when I try to add the ‘not blog’ part it doesn’t work. I’ve tried the following:
<?php if( !is_page(array(8211,4177,5019,11,'blog')))) : ?>
<?php if( !is_page(array(8211,4177,5019,11)) && !is_blog ()) : ?>
<?php if( !is_page(array(8211,4177,5019,11)) && !is_blog_installed ()) : ?>
What am I doing wrong?
Your help is greatly appreciated!
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Conditional if not multiple page and if not blog’ is closed to new replies.