Skip Navigation

[Resolved] How to display map using address field in email notification

This support ticket is created 5 years, 1 month 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 7 replies, has 2 voices.

Last updated by Shane 5 years, 1 month ago.

Assisted by: Shane.

Author
Posts
#1398489

Tell us what you are trying to do?
Hi,
I want to display map using address filed for the parent post type in email notification after submitting a form. For now the location is displayed as number I want to display it as a map.

#1398849

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Nabils,

Thank you for getting in touch.

How is the child form added to the page? Is it being clicked to from the parent ? for e.g a button that says " Create Child Post "?

And is it that you just simply want to display the parent Address on the child form?

Please let me know.

Thanks,
Shane

#1399345

Yes it is a link from parent page that create child post. For now I can display the parent address on the child form. However, I want to display the address since it is a location as map.
Do I have to create view to display address as map and how to do that?

#1399809

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Nabils,

Since you are displaying the parent address on the child form then all you need to do is add the map.
Could you send me the shortcode that you are using to display the address on the child form ?

I should be able to just provide you with the code to get this to display on the map.

Thanks,
Shane

#1399993

The type shortcode I am using is [types field='property_location' item='@property-application.parent'][/types]

#1400209

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Nabils,

You should be able to do it like this.


[wpv-map-render map_id="map-5"][/wpv-map-render]

[wpv-map-marker map_id='map-5' marker_id='marker-5' marker_field="[types field='property_location' item='@property-application.parent'][/types]"][/wpv-map-marker]


Please try this and let me know if it helps.
Thanks,
Shane

#1400381

I already used the map in the website and it is working fine. However, when I try to use it in notification email when submitting child edit form it will not be shown. I tried your code but it is still not working.

#1400789

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Nabils,

If its for the notification email then no it is not possible to do.

You cannot add the map itself to the notification email.

Thanks,
Shane