Skip Navigation

[Resolved] How to output a map from an address field

This thread is resolved. Here is a description of the problem and solution.

Problem:
Client is outputting a Types address field, and it is displaying the address, not a map.

Solution:
Inserting the address will display the address. To show a map using that address it is necessary to insert a map as described in the documentation.

Relevant Documentation:
https://toolset.com/documentation/user-guides/display-on-google-maps/displaying-markers-on-google-maps/

This support ticket is created 6 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 2 replies, has 2 voices.

Last updated by guyH-2 6 years, 3 months ago.

Assisted by: Nigel.

Author
Posts
#1076046

I am trying to: Show a Google map on post

Link to a page where the issue can be seen: hidden link

I expected to see: a map

Instead, I got: just the address

I have tested the API "Google API seems to be configured properly."

#1076154

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Guy

I looked at your site and the template in question which contains a text module to display the address using the types shortcode, but I didn't see a map inserted anywhere.

You need to insert a map with a marker that comes from the address field, as described here: https://toolset.com/documentation/user-guides/display-on-google-maps/displaying-markers-on-google-maps/

When using Divi you will need to insert the shortcodes (using the Fields and Views button) into a Divi text module.

#1076190

Hi Nigel,
Thanks for looking into this.
I can get the map to show using the shortcode in the example, but the code generated by the plugin doesn't work.

I have tried this shortcode
{!{wpv-map-marker map_id='map-6' marker_id='marker-6' marker_field='wpcf-osoite'}!}{!{/wpv-map-marker}!}

generated from the plugin. But can get the map to show only using;

[wpv-map-render map_id="map-6"][/wpv-map-render] [wpv-map-marker map_id="map-6" marker_id="marker-6" marker_field="wpcf-osoite"][/wpv-map-marker]

Might be something to do with the text editor and how divi is saving the shortcode?