Adding a different class to every third post?
-
Hi Everyone
I am new to wordpress, so i am trying to learn as i go along. I have an issue with posts on the index page that i am hoping someone can give me some advice on.
Is there a way that i can give every third post a different class? For instance i have three post all floated to the left and i need to give the third item a different class, so that it removes the margin.
Ok before posting this message, i have had another look at the Codex, and found the Post Classes function. Would this function perform the task that i am looking for?
Thanks to anyone who can help out.
Scott
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Adding a different class to every third post?’ is closed to new replies.