View Single Post
Old 02-20-2011, 08:52 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 bloggerz View Post
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.
__________________
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