• Resolved endlessstudio

    (@endlessstudio)


    I am trying to add html code(banner) in the loop.php so that the banner will show up on the 4th post.
    So I used following code:
    <?php if ($count == 4) : ?>
    html code (banner) goes here
    <?php else : ?>

    But I realized the banner is actually replacing my 4th post, in other words, my 4th post isn’t showing up.

    How do I fix this issue?
    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to add a banner in middle of the loop?’ is closed to new replies.