Home › Forums › General Issues › get_field() returns false until post is resaved, but i have 1000+ posts! › Reply To: get_field() returns false until post is resaved, but i have 1000+ posts!
First of wow! Thanks for the super helpful and detailed explanation 🙂
Here’s what I’m not understanding:
If I go to one of my posts now, I see all the wp_metadata that I originally saved to the post with ACF sitting in the correct acf form fields.
When I manually click update, acf grabs the [field]wp_metadata, and as you described, passes it to the the acf function that updates the associated the acf field key to point to the metadata.
Am I right so far?
That function is tied to clicking the update button, and theres an add_action that triggers it.
So shouldn’t I be able to just call that action programmatically and pass the post object to it?
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!
© 2022 Advanced Custom Fields.