How To Display an Advert After Your First Post in WordPress
Adding ads into your WordPress blog is a great way to make money. This tutorial will show you how to add a Google Ad (or other) after your first post on your blog
Adding Code
- Navigate to your WordPress theme folder. Open index.php
- Search for the following code
<?php while (have_posts()) : the_post(); ?>
- Replace with
<?php while (have_posts()) : the_post(); $loopcounter++; ?>
- Search for
<?php endwhile; ?>
- Just before this put
<?php if ($loopcounter <= 1) { include (TEMPLATEPATH . '/ad.php'); } ?>
- Change /ad.php to the file that contains your advert code


Sample Config for WordPress Running on Varnish 2.1
Are you using 32 bit or 64 bit Office 2010?
Have Outlook 2010 Automatically Close a Message After Replying or Forwarding
How to Start Outlook 2010 in a Different Folder
Do you get Error Code 80071392 Using Windows Live Messenger?
How To Image, Sysprep and Deploy Windows 7 a Complete Guide – Using sysprep and Imagex
How to Disable Auto Renewal for Xbox Live
Installing Windows 7 From a USB Stick From Windows XP (Bootable USB) 