WP Hack: Display Your Ads After The First Post Only

My reader has made it clear that it want direct answer on how put one ad banner in her blog, and wants put it after the first post. Here’s how you do:

To make this is simple, all you need to make is to paste this code below in your index.php (Presentation > Theme Editor > Main Index Template).

<?php if ($count == 0) : ?>

paste your ad code here

<?php endif; $count++; ?>

As you can see from this detailed image below once you have paste the script on your index.php

Replace the text “paste your ad code here” with your own ad code and save your index.php. Very useful! This small script allows you to adding banner after the first post.
I like to make things harder and be different that is why it took me a while to finally use this script

Source: onemansblog.com

Do you like this post? Then subscribe to our email newsletter below and receive frequent updates including our awesome free guide that will help start your blog and monetize it from scratch; Our privacy policy keeps your email secure.







About The3dtechnologies

Leave A Comment...



THE3DTECHNOLOGIES

The3dtechnologies.com is an encouraging blog, dedicated to helping people build a business online, creating killer graphics design to increase product page conversions, as learn to save money, as extreme frugal living as well, so you can earn more and save more. I'm glad to have you here!


DOWNLOAD MY FREE EBOOK