View Single Post
Old 02-22-2011, 08:07 AM  
potter
Confirmed User
 
Industry Role:
Join Date: Dec 2004
Location: Denver
Posts: 6,559
Quote:
Originally Posted by fris View Post
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?
__________________

potter is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote