View Single Post
Old 02-21-2011, 10:16 PM  
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,339
Quote:
Originally Posted by potter View Post
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.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote