WordPress.org

Support

Support » How-To and Troubleshooting » how to add adsence code after every post in home page

how to add adsence code after every post in home page

  • i want to put ad code after every 3rd post in my home page
    how to do that

    i am using this code right now

    <?php if ($count==3) { ?>
     <div class="clear"> </div>
    <?php dt_show_ads('position=Archives&before=<div class="adzone_b">&after=</div>&title=्&#2334');?>
    		<div class="clear"> </div>
    <?php } ?>
    <?php $count = $count + 0; ?>

    but it display ad after 2nd post

Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘how to add adsence code after every post in home page’ is closed to new replies.