How to add adsense after first post on Homepage, Category Tag Pages

Right ads at right place ensures higher CTR  thus a chance to earn more. We all take care for having the ads at its best possible location, here we will discuss more about such possible  ads places and how to implement it in your wordpress blog.Adsense ads or any other network ads after single post can be the right choice to deal with. On Homepage or on category page or on tag page we have numbers of post (in most cases 7-10) on single page. Many of us concentrate on sidebar, header, footer or customizing ads in single page but fewer of them are worried about ad position on page where there are multiple posts.

How to add adsense or any html code after first post?

Step I : Go to WordPress Dashboard >>Appearance >> Editor.

Step II: Select the page to be edited say Home page ,category page or tag page (Here we will discuss about Home page i.e., index.php click on it)

Step III: Search for following php tag just press CTRL + F

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

Step IV : Add  following code before above as

<?php $bscount = 1; ?>

Step V:  Now look for   <?php endwhile; else: ?>  and place <?php $bscount++; ?> above it.

Step: VI : Finally place this code where you want your ads to be appeared between Step IV and V

<?php if ($bscount == 1) : ?>

<!– Your HTML/Adsense code here –>

<?php endif; $bscount++; ?>

If you want do display ads after 2nd or 3rd post then you just have to replace “1″ by either 2 or 3 or with any no as per your requirement in all php tag showing “bscount == 1″.

Related Posts with Thumbnails

Get updates related to How to add adsense after first post on Homepage, Category Tag Pages in your Email

8 Responses to “How to add adsense after first post on Homepage, Category Tag Pages”

  1. Ruchi 18. Jan, 2010 at 12:10 pm #

    Nice post , for all adsense beginners.

  2. catatanku.info 10. Feb, 2010 at 9:33 pm #

    thanks for the advice, I’ll try it

  3. niftyfutureking 13. May, 2010 at 1:21 am #

    very useful info, thanks a ton, just the exact thing i was searching for..

  4. Christian 29. May, 2010 at 9:49 am #

    it doesn’t work for me. I can’t find some of the codes.. Maybe because of my theme.

    • Rohit Langde 29. May, 2010 at 12:55 pm #

      No matter whatever theme you use, Some codes like for “Post content” and all are similar. Please look at it again and you will get it for sure.

  5. rez 25. Aug, 2010 at 1:02 am #

    My blogs disapprove ad sense .Please help.

  6. StrengthSource 28. Aug, 2010 at 10:58 am #

    Thanks for your useful article. It works ! I never thought it would have been this easy. Your explanation was really clear. Thanks.

    • Nitin 29. Aug, 2010 at 2:11 pm #

      Thanks for your comment

Leave a Reply

Tags - how to add adsense to wordpress article,google adsense after first post wordpress,wordpress adsense after first post,how to add google adsense after first post in wordpress,how to add adsence,how to add adsense to tag pages,How to Add Adsense to the Header,how to add advertisements to tagged,how to add an ad after a post,how to add google adsense under first post wordpress
More in Adsense,Wordpress (6 of 10 articles)