Show recent posts on a list and single out 1st item for special formating
I am working on my WordPress theme and I was wondering how I can setup a loop so it displays the excerpts of the most recent posts from category but separate the very most recent post so I can format it differently (make it stand out from the rest of list of posts).
I am working on a Magazine like format so the most recent article from say Science will be displayed bigger and for the rest I want to show them smaller. I can do the formatting for CSS just fine with no sweat but the loop code is what trouble me.
I was able to pull the most recent post list with the code displayed here (Codex > Loop) but how can single out the very first item so I can format it differently?
Any ideas? any help is much appreciated!
- The topic ‘Show recent posts on a list and single out 1st item for special formating’ is closed to new replies.