vendredi 23 janvier 2015

If statement selecting nth posts in Wordpress loop

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?


Aucun commentaire:

Enregistrer un commentaire