Okay, so I’m trying to have custom effects for the three latest comments on my blog.
Let’s say I want the most recent comment text to be blue, the second most recent to be green, and the third most recent to be red.
I’ve spent a few hours trying to do this, I’ve looked through this board left and right, and I’ve done some general PHP research to try and figure it out, but I’m still having a hard time figuring it out. Itried adding an if-then statement into The Loop, but I can’t seem to make it work.
How can I use the Loop to determine the three most recent comments and use that information to change the styles?
(@directorlife)
17 years, 10 months ago
Okay, so I’m trying to have custom effects for the three latest comments on my blog.
Let’s say I want the most recent comment text to be blue, the second most recent to be green, and the third most recent to be red.
I’ve spent a few hours trying to do this, I’ve looked through this board left and right, and I’ve done some general PHP research to try and figure it out, but I’m still having a hard time figuring it out. Itried adding an if-then statement into The Loop, but I can’t seem to make it work.
How can I use the Loop to determine the three most recent comments and use that information to change the styles?
Thanks 🙂
DirectorLife