• Resolved geylang666

    (@geylang666)


    Hi team,
    The plugin has been great but is there a way to integrate GMW with ACF?
    We hope to input location from within ACF form and output it from GMW form.
    Thanks.
    Glen

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Eyal Fitoussi

    (@ninjew)

    Hello @geylang666,

    Yes. What you described is possible, but requires a custom function.

    Basically, you need a function that will execute each time the ACF form is submitted. The function will grab the value of the address from the form and pass it to the function:

    
    gmw_update_post_location( $post_id, $address );
    

    This function will geocode the address entered in the form and save it in GEO my WP DB table.

    The function description and a usage example can be found here.

    I hope this helps.

    Thread Starter geylang666

    (@geylang666)

    Hi Eyal,

    Thank you for your help! Another follow up question:
    We newly noticed that in Google API setting there is this part:

    “Google Maps API For China”
    “Enabled” “Check this checkbox if your server is located in China and Google Maps features are not working on your site.”

    Does this mean that GEO My WP is functional in China now?

    Thanks.
    Gey

    Plugin Author Eyal Fitoussi

    (@ninjew)

    You are welcome, Gey.

    Yes, GEO my WP should work in China.

    However, I am not sure how good/accurate is the coverage of Google Maps API in China. So as long as the addresses entered in the location forms of GEO my WP exists in the Google Map database, GEO my WP should retrieve and make use of them.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Integration with ACF’ is closed to new replies.