Home › Forums › Feature Requests › Google Map & City Name › Reply To: Google Map & City Name
And do you have any idea why it wouldn’t work ?
I’ve simplified as much as possible
function my_acf_save_post( $post_id ) {
update_field( "field_5593bd8134102", "This is a test!", $post_id );
}
// run before ACF saves the $_POST['acf'] data
add_action('acf/save_post', 'my_acf_save_post', 1);
Then I got on a post, fill all the field, and publish the post but… “This is a test” never appears.
This code is used in the theme’s functions.php
Is there any previous step I may have missed ?
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.