Any chance of posting the complete snippet? I’m not skilled at anything apart from making mistakes…
This looks to me like it might do what I’m hoping… At the moment I have front-end forms that can create and submit custom posts. I’m using formidable forms for the form part.
At the moment, when a post is created this way I am forced to have it submit as a draft post, because the google map field will be empty.
When users input their address in the form, isn’t geocoded – no lat/lng – so the map doesn’t exist until I open a post and trigger the map, then save it.
This looks like it might find the lat/lng when the post is created. Is that right?
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!