Home › Forums › ACF PRO › Saving Google Map lat/lon data as post_meta › Reply To: Saving Google Map lat/lon data as post_meta
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
As far as it regards:
do something else to the $post object via the $post_id
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.
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!
The most recent ACF Chat Friday featured a live demo of how to register CPTs directly in the plugin, one of our most requested features. Check out the summary below for a replay of the demo, and don’t forget to register for the next session! https://t.co/k2KQ3WWBAz— Advanced Custom Fields (@wp_acf) March 9, 2023
© 2023 Advanced Custom Fields.