Hi All;
I am using an adsense plugin to add adsense ads to each post on my site, and I have hacked the plugin so far to just display ads when on a single post page, but I want to modify it again to show an adsense ad for the first post on the homepage and ONLY the first page. Can anyone tell me how I would check if a given post is the first post?
Here is my adsense.php hack so far:
if( is_single() )
{
return str_replace( $tag, $adsense_code, $data );
}
elseif ( is_home )
{
if ( FIRST_POST?? )
{
return str_replace( $tag, $adsense_code, $data );
}
else
}
return str_replace( $tag, '', $data );
{
}
else
{
return str_replace( $tag, '', $data );
}
I just need a value for FIRST_POST?? for it to work.
Thanks,
Mike