apply different style to last 4 posts
-
I was wondering how i can apply different css styling to the last 4 posts of a wordpress blog that has a total of 6 maximum posts being shown on the front page.
The first 2 posts are going to be a “large” version preview of the post and the next 4 are going to be a “small” version preview of the actual post.
Is there a way in wordpress to number the first posts 1 through 6? And i can just drop that number into the css styling.
Or is there a more elegant way of doing it? maybe with a wordpress function?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘apply different style to last 4 posts’ is closed to new replies.