I'd like to add a NoIndex meta tag in the header for posts older than 6 months. I've got a lot of them and the content is no longer relevant. I want to keep them but remove them from the Google Index.
Is there a proper way to do it, maybe a buit-in Wordpress function ?
I would like to avoid unnecessary and heavy database query or another plugin.
Thanks for any input.