I'm working within the Wordpress loop and need to only display a featured image for posts 1, 4, 5, 8, 9, 12, 13 etc (+3+1r) in sequence.
I can set up a counter variable and count the posts but unsure how I can select nth as per the above sequence if anybody can help with the syntax please?
'; while ( $the_query->have_posts() ) { $the_query->the_post(); echo '- ' . get_the_title() . '
';
}
echo '
'; } else { // no posts found }` – amitabhdhiwal Jan 23 '15 at 17:42