batfan
5/1/2014 - 11:08 PM

Check current post in the loop

Check current post in the loop

<?php 
// Insert code after the second post
if( 1 == $wp_query->current_post ):
	echo '<div>some text</div>';
endif;
?>