GEO my WP Support

Use this forum for technical support and general questions related to GEO my WP plugin and its core add-ons only. For technical support and general questions related to any of the premium extensions please open a new premium support ticket.

[Resolved]ACF and Geomywp

Forums Support ACF and Geomywp

Viewing 15 posts - 1 through 15 (of 22 total)
  • Author
  • #56758

    Hi Eyal.

    I hope you’re well. Just a quick one as I read in another post that you’re working on it, but do you have any idea when the ACF geo location integration will be completed? I’ve got a website that I’m working on where we have to swap out the gravity form (with working geo) to the normal acf form. I’m hoping this job is just at the right time to try the new extension out!

    Many thanks,


    Hi David,

    Unfortunately, I don’t have an exact date.

    No kidding, I have at least 4 or 5 extension that I started working on, but had to pause the development because of GEO my WP 3.0. V3.0 has been taking much longer than I expected.

    What kind of integration are you looking for exactly?

    Integration between ACF and GEO my WP? or general Geolocation solution for ACF?


    Hi Eyal.

    I did have this acf google map to GEo my WP working based on your example:

    However, I see with the latest update it no longer works. I was hoping you would be able to give me a little guidance on how to make it work with the V3. I basically use an ACF map which stores the full addresss, lat and long. The old function just added the address to the geo field, but there is no documentation on how to do this for V3 yet that I can see.

    Many thanks,


    Hi DAvid,

    There is an issue with the geocoder in the latest version and I am currently working on a fix.

    I posted a suggested temporary solution in this post

    Give it a try and see if it works.


    Hi Eyal,

    I think there is a mix up, or I didn’t explain correctly. Basically I had your function setup so that when someone submitted an ACf form it would update the location of the post. But it was using the older version of your plugin. I’ve since updated and can see that a lot has changed in the plugin. You no longer use this:

    The function gmw_pt_update_location() does not exist here anymore.
    The function is deprecated and replaced with gmw_update_post_location() which can be found in geo-my-wp/plugins/posts-locator/includes/gmw-posts-locator-functions.php

    I looked at the new file and it seems the function has changed, so I tried to update my code, below, and it doesn’t seem to work / fire:

    Is there something I’m missing here?


    Hi David,

    Both gmw_pt_update_location() and gmw_update_post_location() do the same things. Which is taking an address, geocodes it, and saves the location data in GEO my WP locations table in db.

    gmw_pt_update_location() was doing it all directly. While gmw_update_post_location() does the same thing, but not directly. it simply calls the function from the new GMW_Location class.

    The issue is in the geocoding part. Since the recent update of Google Maps API, it is required to use a server maps API key to do server-side geocoding ( which is what gmw_update_post_location() does ). And GEO my WP still passes the client-side key to the function. And that is why geocoding fails which results in the issue that you are having.

    This issue is described here and the temporary solution is in the link that I have already provided – here.

    You need to create an additional Google Maps API key ( do not delete the current one ) and set it up as a server key. Then pass the key directly into the core file of the plugin. This is all described in the link I provided.

    Once you have done the above this is the function that you should be using:

    Let me know how it goes.


    Hi Eyal.

    Thank you so much for your help, but sadly this doesn’t resolve the issue. I have created the server side key and added it directly to the plugin and it doesn’t resolve the issue. The function does fire, but no address is saved to the GEO field.

    Is there anything else we can try? Would this problem also occur if I reverted the plugin back to the older version? It sounds like Google is the problem.

    Many thanks,


    Hi David

    Try debugging the geocoder at the point where it retrieves the data from Google and see what is being returned.

    It should be in geo-my-wp/includes/class-gmw-geocoder.php in line 223. You should see the line $result = wp_remote_get( $url );

    You should be able to see what’s in the results while updating a location ( or whenever geocoding takes place ) by adding print_r($results) below line 223.

    Are you able to do this and let me know the results?


    Hi Eyal.

    Is this supposed to print the data to the screen? I changed the file to this:

    // Get endpoint URL.
    $url = implode( ”, $this->get_endpoint_url() );

    // try geocoding
    $result = wp_remote_get( $url );

    // return results

    Nothing appears on the screen. I enabled WordPress debug mode and no errors come up related to the GEO either.

    This reply has been marked as private.
    This reply has been marked as private.

    Thank you.

    IN the attached image you can see the error message returned by Google API. Looks like you didn’t enable the required API services in your API project.

    Please see step 10 of this tutorial. It shows the required API services that need to be enabled in your API project.

    These services should already be enabled in your project since you have a working client-side API key. However, if you created the server-key in a separate project, you should only enable the Geocoding and Geolocation API services.

    I hope this makes sense.

    You must be logged in to view attached files.

    Hi Eyal.

    I’m sorry I missed that step, but I’ve activated the GEO services on the server side project – it is in a different project – and it still doesn’t seem to work. Can you try again?

    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 22 total)

You must be logged in to reply to this topic.