• Resolved J?nson

    (@werun)


    Hi, is there anyone out there who can hear me?

    I need some coding help to add a div tag after 3rd, 6th and 9th post.
    Each div-tag is different.
    Anyone?

Viewing 1 replies (of 1 total)
  • Thread Starter J?nson

    (@werun)

    <?php $postnum++;
    if ($postnum == 3) { ?>

    <h2>Blog</h2>

    <?php }
    if ($postnum == 6) { ?>

    <h2>References</h2>

    <?php }
    if ($postnum == 9) { ?>

    <h2>Meet the team</h2>

    <?php }; ?>

Viewing 1 replies (of 1 total)
  • The topic ‘Add div tag after 3rd, 6th & 9th post’ is closed to new replies.