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?
Thanks for that – I have to say that after being asked for $900 a year or so ago to create a custom single.php that I eventually managed to do myself in a couple of hours, I would never consider contacting envato!
Actually, although I’m still trying to stitch them together, the easy solution is to use Formidable Forms Pro for the front end submission – they have a selection of payment addons. All I have to do now is work out how to get one or two fields to submit properly and it’ll be time for a beer!
I’m looking for exactly the same thing….. any news on a solution?