Setting up automatic date tags on a site

[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]
1 Comment

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer