[ad_1]
Hey!
I’m looking for a way to automatically add the current year as a tag to all new posts. I’ve seen some auto-tag plugins but none support this functionality. I’ve been looking into putting a MySQL trigger in place too; something like once an INSERT is detected in wp\_posts, create a tag entry on wp\_term\_relationships with the post ID of the new post and the term\_id taken from a searching the tag name on the wp\_terms table.
It’s very much possible that I’m massively overcomplicating it, but I’d love to see if it can be done. Thanks in advance!
[ad_2]
Did you google this first? There are several plugins that do this.