WordPress.org

Support

Support » Themes and Templates » Inserting banner after 2nd & 3rd post

Inserting banner after 2nd & 3rd post

Viewing 1 replies (of 1 total)
  • Michael
    Forum Moderator

    @alchymyth

    try and move the $count++; to before the endif;

    i.e. change these sections:

    <?php if ($count == 1) : ?>
    <?php echo adrotate_ad( ??? ); ?>
    <?php endif; $count++; ?>

    to:

    <?php if ($count == 1) : ?>
    <?php echo adrotate_ad( ??? ); ?>
    <?php $count++; endif; ?>
Viewing 1 replies (of 1 total)
  • The topic ‘Inserting banner after 2nd & 3rd post’ is closed to new replies.