WP: Adsense Ad in place of 3rd post.
I'm trying to do something within my loop.
I have a grid based layout for my blog posts. I would like to have an adsense ad in place of my third blog post.
I have searched Google for some answers, and tried them all. None of them are working.
Here is my loop code in my index.php
<div id="index-wrap" class="grid-1">
<div class="<?php echo of_get_option('entry_grid','grid-4'); ?>-wrap clearfix">
<?php
if ( have_posts( )) :
while ( have_posts() ) : the_post();
get_template_part( 'content', get_post_format() );
endwhile;
endif;
echo '<div class="clear"></div>';
att_pagination(); ?>
</div><!-- .grid-*-wrap -->
</div><!-- #index-wrap .grid-1 --> $postnum == 3 or $count == 3
But I don't know.
If anyone could help me out, I would really appreciate it.
Thanks.
UK TV abroad for free: http://WatchBritishTV.com
UK TV abroad for free: http://WatchBritishTV.com