I want to apply unique CSS to a group of posts from a specific date (or, in the alternative, the most recent day’s posts). In this particular case, the posts are grouped by date. One date, several posts. Then, another date, and several more posts for that date. Simply put, I need to remove the date for the most recent posts, but keep the date for other posts.
Just found a snippet of code for functions.php which adds a class to the first post, when then is used to hide the date for the first post. WP also has a date function which provides a single date for multiple posts on the same day, and the first post class limits the date to one for all the posts. Perfect.
You must be logged in to reply to this topic.
Are you a blogger, web designer, developer, or website owner looking to generate more income?
Promote products for the largest and fastest growing online website platform as part of our affiliate program.