I love ACF (especially now that I found out it can do category meta as well!) but am running into a problem now.
I’m trying to do the following: I have 3 custom fields, “address”, “postal code” and “city” (along with some others). Upon saving a post with these fields I want to combine these fields, send it to an external API (address to coordinates) and save the result in a new custom field.
I can hook save_post (or acf/save_post) and print out $_POST[‘fields’] which contain the new values of the custom fields. However, the problem is these names change! When I tried it earlier, one of the fields was called field_51f67d7586013 but now it’s field_51f67f81d00d6.
Can I somehow retrieve which POST field belongs to which custom field, i.e. field_51f67d7586013 is ‘address’ ?