View Single Post
Old 02-22-2011, 09:45 AM  
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
Well, it's not-category, and not-paged. My point was

Why not simply use:

Code:
<?php if (is_home()) {?>

ad here.

<?php } ?>
??

Because using

Code:
<?php if (is_home() || !is_archive() || !is_paged() || !is_category() || !is_tag() || !is_single()) {?>

ad here.

<?php } ?>
Is exactly the same as putting:

Code:
<?php if (is_home()) {?>

ad here.

<?php } ?>
and
Code:
<?php if (!is_archive()) {?>

ad here.

<?php } ?>
On the same page. So not only will it show up on the home page, but it would want to be shown on any page that ISN'T an archive page.

Maybe I'm not explaining myself, but I just don't understand the point of having alllll those extra OR statements?
ya you would still need to have !is_paged() though, cause home is considered page2 page3 of the index
__________________
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