Forum Replies Created
I’ve tried the above script – and it is not working for me. And I see this is an older topic, so maybe there is another solution already in place?
I certainly don’t want to imply that I am an expert here. However, I read your post, and I know that I tried GD (I’m assuming you’re talking about “GeoDirectory”) – and it was a much more complex process. And, it was completely redundant. With a bit of managing, you can do just as much with Geo My WP.
Just my .02.
One thing I’ve noticed, and maybe there is just a step I’m missing here – but when a user goes to edit a post using the Gravity Forms: Posts Update method, and they do not change any information in the GeoLocator field (i.e., they make no change to their address information) when the post is saved, the geolocation data disappears, and the listing falls off the map.
Only when the user makes a change to the address – or even re-selects their current address, does the geolocation information get populated upon saving.
Is there something we can do to force that?
Thanks for the response. So I figured out how to make this happen. Let me give a brief explanation here for the benefit of others who may be trying to do this:
- First, if you are using the “Gravity Form: Update Posts” plugin, it will provide you with a shortcode that you can use to automatically generate a link. I have mine in an output loop that happens to feed me the POST ID of the custom post I want to edit. If you don’t have that, and simply know the POST ID, this will work as well.
- The shortcode to generate a link is
[gform_update_post_edit_link post_id=XXX url=XXX]where the first “XXX” represents the ID of the custom post you want to edit, and the second “XXX” represents the ID of the PAGE that contains the update form (see the next item).
- As mentioned in the last item, create a page that contains the Gravity Forms shortcode – just like you would normally use to add a Gravity form to a page. The shortcode for this is simply:
[gravityform id="XXX"]where “XXX” equals the ID of the Gravity Form you want to use – AND that has been properly setup with Geo My WP form fields.
So what happens is that the link takes you to the page that contains the Gravity Form, and since you are using the Gravity Forms: Update Posts plugin, it will recognize that you are coming to this form to UPDATE a post, and it will load all the data into the form from that post.
There are definitely some nuances to setting up the form. I’ve learned quite a bit in the last few days. And things are finally beginning to come together.
I hope this helps others. And if anyone needs assistance, feel free to reach out here. As long as Eyal is ok with that.
Any word on this? Just trying to find out how I can create a front-end form for the user to edit their posts that have been geo-tagged and make sure changes to address are updated properly.