Add Ads Between WordPress Posts

Posted by Asuka_Aki | Posted in Wordpress | Posted on 13-06-2008 |

Tagged Under :

The process of adding ads, code and images between blog posts is easier than you might think.

First log in to your admin’s dash board and click “design” then click “theme editor”.

1)Depending on your currant theme you should have an Index, Archives and Categories page. These are the pages you can add code or ads between the posts. Select the page you want to edit.

2) Then find, (hit “CTRL + F” on your keyboard to open a search box)

If your theme uses excerpt:

Look for: the_excerpt

If your theme uses full posts:

Look for the_content

3) Right after the line of code that contains the_content or the_excerpt, add teh following snipped:

<?php
$postcnt++;
if ($postcnt == 1){
echo 'adsense code';
} elseif ($postcnt == 3){
echo 'adsense code';
    };?>
Please note you can change the value of post count to anything you like.
If you want an add after the third post change 2 to 3.

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!


del.icio.us:Add Ads Between WordPress Posts digg:Add Ads Between WordPress Posts spurl:Add Ads Between WordPress Posts wists:Add Ads Between WordPress Posts simpy:Add Ads Between WordPress Posts newsvine:Add Ads Between WordPress Posts blinklist:Add Ads Between WordPress Posts furl:Add Ads Between WordPress Posts reddit:Add Ads Between WordPress Posts fark:Add Ads Between WordPress Posts blogmarks:Add Ads Between WordPress Posts Y!:Add Ads Between WordPress Posts smarking:Add Ads Between WordPress Posts magnolia:Add Ads Between WordPress Posts segnalo:Add Ads Between WordPress Posts gifttagging:Add Ads Between WordPress Posts

Comments:

There are (7) Comments for the Add Ads Between WordPress Posts

Post your comment


Comments links could be nofollow free.