How To Insert Ads After the First Post In WordPress Blog?

Posted by


Many of wordpress users want to display Ads after the first post on their blog rather then add ads in header or sidebar…specially google Adsense code for the advertisement and earnings. For that please follow this procedure:

– Open index.php file of your wordpress theme.
– Search the code:

<?php endwhile; ?>

Add this code before that:

<?php if(!$show_ads){ ?>
Your Advertisement Code here….
<?php $show_ads = 1; } ?>


Shane G.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.