Hi there -
I have a CPT, “Events”. Each Event has an ACF field, “Location” which is a Google Maps field. This field returns details about that location, like address, latitude and longitude. Is it possible to use the Map element, where there is a marker for every Event? I’m familiar with ACF Loopers, but I can’t seem to get this to work without repeating the map element for each Event. Where I’m at now:
- Parent element is a div with Looper Provider set to Query Builder > Event
- Under this is the Map element with Looper Provider set to Dynamic Content > “
{{dc:acf:post_field field="location"}}
”. (Turning on Looper Consumer here causes the map to duplicate for every Event published.) - Under this is the Map Marker with Looper Consumer turned on. I tried grabbing latitude with
{{dc:looper:field key="lat"}}
with no luck. It does work when Looper Consumer is turned on for the Map element, but as mentioned in the bullet point above, doing this causes the map to duplicate.