Here is a simple and easy trick to add an advertisements on the first post only. All you have to do is to add the following code:-
- Go to Admin Panel > Presentation
- Theme Editor
- Click on “Main Index Template”
- Add the code between line of code with <?php the_content & <?php endwhile; ?>
<?php if ($count == 0) : ?>
[your ads here]<?php endif; $count++; ?>
This is quite useful for your to add another advertisements if you are using shylock or mightyadsense plugin as they only allow a maximum of 3 block of advertisements on the front page.
If you have DeluxeAdsense, you will use the following code in your templates. Replace “ads name” to the exact Adsense Block Name.
<?php if ($count == 0) :
adsense_deluxe_ads(‘ads name’);
endif; $count++; ?>



