Style Post Links Differently Based On Time Stamp?
-
I’ve got a few nice functions on my theme allowing me to do things like count the number of new posts posted within the last two days, and marking posts in different ways based on when they were posted.
On my site i have a list of the 5 most recent posts. What I would love to do
I’m wondering if there’s any way to style the first two post links differently than the rest based on recency. Basically, if it’s been posted in the past two days make the link white rather than red… or whatever. I’m looking for a PHP function perhaps?
Any help is appreciated.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Style Post Links Differently Based On Time Stamp?’ is closed to new replies.