Hi,
I have added ACF fields to a CPT. I am populating these fields when I create a post via code. All other fields are working fine but not the Google Maps.
The search box saves the address but the map does not render the location. I could not find any workaround for this.
Please help me.
Thanks
Hello,
For showing google maps you have to integrate google api, create a project from your google dashboard, you can use same key for multiple websites owned or developed by you.
reference– https://www.advancedcustomfields.com/blog/google-maps-api-settings/
Hi,
No, my google api was working fine. What I was doing wrong is that I was sending blank values for latitude and longitude in update_field.
I have fixed this and its working fine now.But thanks anyways, for your help.
Thanks