Home Looking for theme support? WordPress Themes Free Themes Editorialmag Please I need help. Reply To: Please I need help.


In most themes open there the index.php file and enter the following code:

<?php $adNo = 1; ?>

directly above the code that says:

<?php if( have_posts() ): ?>

Now you can add as many ads as you want by entering the following code below the have_posts() code anywhere in the content.

Example – Add an ad after post 1:

<?php if ( $adNo === 1 ) echo do_shortcode( ‘[quads id=”1″]’ ); ?>

Example – Add an ad after post 6:

<?php if ( $adNo === 6 ) echo do_shortcode( ‘[quads id=”2″]’ ); ?>