• Resolved daft02

    (@daft02)


    hi
    in the loop i would like something to happen after the third post is showned, so i got this code at the end of “entry” in the loop

    <?php $num=new WP_Query();$num->query($post_count) if $num==3 echo “hdfjkdshfksd”;?>

    but it does not work, any help appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to test if this is 3rd post in the loop’ is closed to new replies.