Formatting "Today's Post" differently
-
Right now, on my site One Forty Fiction, I’m formatting my first post differently using the “in_category” tag, which has been working great for me for the past year. When I add a new post, I change the category of the last post, put the new post in the appropriate category for the formatting, save both, and I’m good to go. The last post goes to the regular formatting, the new post gets the special formatting, and everybody is happy.
But now I have less time to dedicate to the site and I want to automate this process as much as possible. I want the special formatting to be based not on the category (which I have to change manually every day), but on the date of publication. Specifically, I want to make it so the post that gets published “today” contains the special formatting, and come midnight (or whatever), it gets changed to being formatted like all the others.
Anybody have any idea how I might do this?
- The topic ‘Formatting "Today's Post" differently’ is closed to new replies.