WP Hack: Adding banner (ad) after the first post
Sometimes you just want to add one ad (banner) in your blog, and you want it to be after the first post. If you wanted to do that, here is a quick fix:

As you can see from the screenshot above, you will need to find your “Read More” code in index.php (Presentation > Theme Editor > Main Index Template). After you have found it, insert this code below:
<?php if ($count == 0) : ?>
paste your ad code here
<?php endif; $count++; ?>
Replace the text “paste your ad code here” with your own ad code and save your index.php.
That’s it! This small code will display your ads after the first post only.
Thanks to onemansblog.com
Related Posts
- Skype hack - call free to UK, US, France and Polland
- Free Online Banner Creator Tool
- Conference: Hack In The Box 2008
- Popular Posts
- how to hack feedburner










By xBrain on Dec 24, 2007
Hi Ades,
Thanx for the tips. I had search this info for quite sometimes. Need to put the nuffnang ads.
Btw Ades, I had a talk with Tim about the nuffnang ads are not done well in your blog and he says because the unique visitors that you received mostly from outside, not local.
Hope that info will help..
By Shawal on Dec 24, 2007
Thanks Ades for this simple tutorial.. I’ve been looking for this a quit time….
By Ades on Dec 25, 2007
xBrain, yes that might be the case with nuffnang. But anyway the performance was still weak compared to other programs.
By Michael on Jan 3, 2008
Implemented on my blog immediately, wonderful tip!
By Make Money Online on Feb 21, 2008
Top tip. Just got to find that code now. LOL
By FACTOR2 on Feb 29, 2008
Thank You.Good script
By PS3 on Mar 14, 2008
Thanks for the heads up, that will sure save a bit of time.