itsalltech1
Member
Posted 10 months ago #
Hello,
I'm wondering if anyone can help provide code that will add a CSS class to all posts that are published since a reader's last visit. For example, the reader visits the blog. Before the reader visits again, 5 posts were published. Those 5 posts should have a CSS class attached to them.
Does anyone have any ideas?
Thank you!
That is going to be very difficult to pull off. The only way I can think that you'd be able to do this is by dropping a cookie containing the id of the most recent post, then picking that cookie up again on subsequent visits, comparing the stored post id against each displayed post id and adding the CSS class as appropriate. Then finally updating the user's cookie again. As I said, not a simple task at all.