Quote:
Originally Posted by potter
Now that I think about it, wouldn't
Code:
<?php if (is_home() || !is_archive() || !is_paged() || !is_category() || !is_tag() || !is_single()) {?>
ad here.
<?php } ?>
Return the ad on a lot more pages than the home page? You're code is basically saying...
[b]Show the ad if:
? It's the home page
? Or if it's not the archive
? Or if it's not paged
? Or if it's not a category
? Or if it's not a tag
? Or if it's not a single.[b]
So it would display the ad on any page that wasn't the archive for instance. Because with all the "OR" double pipes, only one of those circumstances needs to be true for the ad to display.
|
it will only show on the front page.
using that code if i view a category or tag page or full post, it doesnt show the ad.
only on the home, not any paged page2,page3, etc.