Quote:
Originally Posted by bloggerz
hi looking for some help here!
I'm using this code to display something on the home page only, not on the category, posts, or archives pages.
This is the code:
<?php if(is_home() && $post==$posts[0] && !is_paged()) { ?>
ADVERTISEMENT HERE
<?php } ?>
But when I use that I get this error:
Fatal error: Call to undefined function is_home()
Any help is much appreciated thanks!
|
Code:
<?php if (is_home() || !is_archive() || !is_paged() || !is_category() || !is_tag() || !is_single()) {?>
ad here.
<?php } ?>
this should do it.