Simple WP Conditional Help
-
I want some section of code not to display if the page is one of two page templates so I try:
<?php if(!is_page_template('temp1.php') || !is_page_template('temp2.php')){ ?> <h1>Test</h1? <?php } ?>
But it doesn’t work, however if I do one individually then it works as expected? I’m guessing i’m constructing it wrong but can’t point it out?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Simple WP Conditional Help’ is closed to new replies.