Make most recent post a div and the others span
-
Hi,
I need to put the first post in a div and the others (3) in spans; I am currently applying a different style (from the other posts) to the most recent post.
I was thinnking of something along the lines of using an offset, much like the way I am applying different styles to posts; I don’t know how to make wordpress understand what I want to do but I was thinking like this:
if ($post == $post[0]){
<div stuff>
etc
</div>} else {
<span stuff>
etc
</span>}
I hope that makes some sort of sense, if you understand what I’m trying to do could you please help.
Thanks
motionfour.com
- The topic ‘Make most recent post a div and the others span’ is closed to new replies.