Quote:
Originally Posted by fris
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.
|
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?