I have a CPT in wordpress that has a custom field type select, which brings its values from a query to an independent database to wordpress, where event data is housed (date, address, timetables, etc.) When selecting a value from the drop-down, new queries are generated that return values corresponding to a specific event, whose data I show in the CPT view. Now I want to preload the value of the address field that the query returns to me, in another field of the same CPT that another ACF type GoogleMap. With the next filter I get to load the value in the field.
function acf_load_neu_events_data_value( $field ) {
$field['value']['address'] = 'arturo soria, 2. Madrid';
return $field;
}
But the problem is that the field does not recognize the text, since it does not locate it in the map that is under the field As you can see it does not recognize the address, if I update the post, it does not record any value for the map field.
I appreciate any observation.
Thanks