Kathy_P
Member
Posted 3 years ago #
Is there a way to use "not" with conditional tags? For example, in my sidebar template I would like to display a Google ad modules for all pages except a 404. Is there a way to say "If this page is not a 404, then execute this Google code"? Or is there a better way to go about it?
Something like:
<?php
if(!is_404()) {
adsense_deluxe_ads();
}
?>
(assuming you're using Adsense deluxe for your Google ads)
"em" works - "i" doesn't :)
Kathy_P
Member
Posted 3 years ago #
So, you are saying that using an exclamation point means "not" in php? That was what I needed to know. And I am not familiar with Adsense deluxe--is that a plugin? I've just been pasting in the code that Google gives me.
Good questions. I did know about the ! = not, but moi aussi, I would like the answer to the other....