Home › Forums › Backend Issues (wp-admin) › Import published post year to acf field › Reply To: Import published post year to acf field
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.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.