SEOnoob
   Random Post » Adsense Keywords Analysis: Europe

Implementing Ads in Between Posts

If you want ads to appear between posts in your index page, you'll need to edit the template to accomodate it. A word of caution though: do not overload your site with ads such that it will turn your readers away! All templates might differ but I'll try to make this as simple as possible but here you go in 3 short steps:

1. In your index.php file for your theme. Look for a line that says:

<?php if (have_posts()) : ?>

Above it, add this line:

<?php $counter = 1; ?>

2. Find this line:

<?php the_content('…'); ?>

Above it, add this line:

<?php $counter = $counter + 1; ?>

3. Finally, find this line:

<?php endwhile; ?>

Above it, add this line:

<?php  if(2 == $counter){
         echo ' Copy and Paste Your Adsense Code or Other Advertising Code Within the Quotes';
      } ?>

Also, this code is also applicable to archive.php file. For more information on how other bloggers are doing it, try these:

How to: Placing Adsense Strategically Between Posts
Adsense Tips: How to place your ad between your blog posts in Wordpress

Related Posts:


3 Responses to “Implementing Ads in Between Posts”

  1. Steve Castaneda
    June 30th, 2006 09:14
    1

    I tried the above method but unfortunately couldn't get my ads to display as expected. I'm going to try again to see what the issue could be.

  2. Shawn
    May 22nd, 2007 02:34
    2

    I have tried to implement ads using a plugin, and I also gave a supposedly AdSense optimized WordPress theme a try. I haven been satisfied with the results of either one. Maybe I just need more readers?

  3. teckie
    June 1st, 2007 09:21
    3

    Hi Shawn,

    I've seen a recent report that says most ad clickers come from search engines, so you might wanna try to improve your seo ranking on a specific keyword.

    here, linkbuilding will be very important! so give it a try by trying to linkbait, etc.

Leave a Reply

Related Posts from the Past: