Since you are here, let me lay out exactly what I’m trying to do. I’d like to filter a custom post “publications” by year. But I’d like that value for “year” to come from the date the post was published.
In essence I’d like to get date post was published and from it, extract the year and add it as a meta field value for that particular posts. But I want this done automatically since I have over 400 publications and can’t really do this manually.