A Few Days Back I wrote about How to Remove WordPress Theme Sidebars and Integrate Google Adsense Search within your Blog.

Now Here’s another small Template Hack/Trick for Displaying Advertisement Between First Post and Second Post in WordPress (Refer Image above).
- Navigate to Design/Appearance Tab
- Choose Theme Editor
- Go to Index.php
- Now search for the following line in it:
<?php endwhile; ?>
- Now Immediately above this place the following lines:
<?php if(!$show_ads){ ?>
Insert Advertisement Code Here
<?php $show_ads = 1; } ?>
- Moreover, you can align the placement of this Advertisement to Center simply by using <center> tag as shown below:
<center>
<?php if(!$show_ads){ ?>
Insert Advertisement Code Here
<?php $show_ads = 1; } ?></center>
It’s all Done.
Note: This template trick/hack is only applicable for WordPress Self Hosted Blog Users, this will not work for Blogs hosted on WordPress.com
[via]
Related posts:
- Insert Ads between WordPress Header, Posts & Sidebar
- Enhance your WordPress 404 Page with Google Search
- Remove Sidebar & Add Google AdSense Search within your WordPress Blog
- How to Apply for Guruji Ads Network?
- Hide/Mask Affiliate Links in your Blog/Website
- Akismet is MUST for Every WordPress Blog!
- How to Track WordPress Blog Visitors in Real Time from Dashboard?
- Now Read Out a Blog in Robots.txt File!
- Create/Generate Image XML Sitemap for WordPress Blog
- WordPress XML and XHTML Sitemap


hey thanks,
i done this tut, it helped me. u can chk the DEMO here: http://gfxtutor.co.cc/?p=15
cya
Nice tips with easy understanding is the highlight of this article. Better I bookmark this page @ http://desidigg.slinkset.com for all my friends & members of this site.