Home › Forums › ACF PRO › Saving Google Map lat/lon data as post_meta › Reply To: Saving Google Map lat/lon data as post_meta
Hi,
I tried both solutions, Rob’s one works, but John’s one doesn’t.
I thought it was a problem in rendering/loading the google_map field/value,
so I’ve tried update_value
on a basic ACF text field, passing its $value to another ACF field, but nothing happens.
I’ve tried overriding the returned $value as in docs usage example and it fires only when I save the post (publish or update – so I don’t get the difference with save_post
action).
As far as it regards:
do something else to the $post object via the $post_id
neither ACF update_field
nor WP update_post_meta
seems to work.
So, hooking WP save_post
does the job, but I wonder if there’s a way to dynamically update ACF fields while updating other ACF field value.
Cheers
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.