PHP operators – how to do something if it's not this OR this…
-
Can anyone advise what i’m doing wrong here?
I’m trying to load a jQuery function IF the page isn’t using a template OR if it’s not a single OR if it’s not an archive.
I have the below…
<?php if ( ! is_page_template('modelPages.php') || ! is_archive() || ! is_single ) { ?>
But it doesn’t seem to work… HOWEVER if I remove the or operators and subsequent rules, the function doesn’t load (which is correct) on the modelPage.php templates.
How should i be writing this rule?
Thanks
php
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘PHP operators – how to do something if it's not this OR this…’ is closed to new replies.