Display address on a map

Hello there, I have an address that I want to display on a map using dynamic content. I have a website with listings (houses) and the title of that CPT is the address of the listing. I want to have a section on the layout I’m creating to display a map with a pin to that location by feeding the physical address, not lat or long

Hello @mcostales84,

Thanks for writing in!

Please insert a Map element and then add Map Marker to it. In the Map Marker contents, you can use dynamic content to display the address. To learn more about how you can use the dynamic content and ACF, please check this out:

Hope this makes sense.

On the Map Marker I can only add Latitude and Longitud, not an actual address, at least I cannot see it.

Hi @mcostales84,

You’re concern will require customization. Regretfully, customization is outside the scope of our theme support. You may seek 3rd party developers to help you with your problems or you can avail One where we can answer questions outside of the features of our theme.

Thank you for understanding.

I see, but to be honest, without the ability to enter the full address into a map, using the looper with that element is kind of useless, no one enter an address into a CPF using latitude/longitud.
You should think about that and maybe work on it on future updates :wink:
Thanks anyway

Hello @mcostales84,

On the Map Maker, you can insert the longitude, latitude, and the content.
Map Marker Setup

You can use the content field to use the dynamic content element to display either the CPT title which as you have mentioned in your first post is the address of the listing.

Now, be aware that the address can change over time. The building might be knockdown, street names can be replaced, and soon. That is why the Map Marker is using longitude and latitude. Please also be aware that the Map and Map Marker element is just an element container in displaying the Google Maps.

Hope this all makes sense.

No sir, that element doesn’t work like that. Inside content is the text that that specific marker will show. In order to add the marker I need to enter lat/long, which I don’t have, I only have the address, something like 123 Main Street, NY, 12345

Hello @mcostales84,

Regretfully the address alone can’t help the element to display the google map since the Google map API itself requires longitude and latitude.

Thank you for your understanding.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.