Hi,
I know this has been asked a few times and I am seeing two ways to approach this:
1 - the approach i am using:
2 - this approach has some custom code and looks to be an older solution:
Hello,
I have been trying to use ACF with the Google Maps element on a site that’s in development, and can’t figure out why it’s not working.
I have bene looking over this thread , which seemed to touch on the same issue, but so far nothing I’ve done has gotten it to work. I am nearly certain the Google Maps API side of the equation is working just fine. The map loads correctly when I add it to the custom field. The console errors suggest it’s just not picking up the values I am trying to assig…
and references this post:
This morning I updated our website from Pro 4.3.3 to Pro 5.0.1 (and just before posting this, to 5.0.2).
After the update, a bunch of things were messed up. I was able to fix most of them, except this.
Inside of a Map element, under “Setup”, for “Latitude” and “Longitude” I have two custom dynamic content strings, generated by a function I snagged from a post from @alexander on Dynamic Maps . Below is the code I’m using, with two very small adjustments: “location” → “map” and “acfpro” → “acf”…
While using approach 1, i am still having difficulty getting this to work. here is my setup:
ACF Google Map Element - google_map
ROW - Provider using QueryBuilder w Consumer of 1
Column (w/Map Element)
Provider: Dynamic Content - {{dc:acf:post_field field=“google_map”}};
Consumer: on
Map Element & Marker
using {{dc:looper:field key=“lat”}} & {{dc:looper:field key=“lng”}}
But…no luck on the front end
what am i missing?