Skip Navigation

[Resolved] Use shortcode in marker address

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

Problem: I would like to create a map marker using an address from a custom shortcode.

Solution: When you create the map marker shortcode, choose any fixed address and insert the shortcode. Then replace the fixed address with your custom shortcode. The result will be formatted like this:

[wpv-map-marker map_id='map-123' marker_id='marker-456' address='[sasa]'][/wpv-map-marker]

Then go to Toolset > Settings > Frontend Content and add sasa in Third party shortcode attributes.

Relevant Documentation:
https://toolset.com/documentation/user-guides/display-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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 3 replies, has 2 voices.

Last updated by souhirB 6 years, 3 months ago.

Assisted by: Christian Cox.

Author
Posts
#1144019

I am trying to:
I use a shortcode to explode adress from an acf field

 <h1> [sasa] </h1>

When i put the shortcode in view or loop it works fine it show town
i want to use this shortcode instead of marker-field to show adress in map

Thank you

#1144495

When you create the map marker shortcode, choose any fixed address and insert the shortcode. Then replace the fixed address with your custom shortcode. The result will be formatted like this:

[wpv-map-marker map_id='map-123' marker_id='marker-456' address='[sasa]'][/wpv-map-marker]

Then go to Toolset > Settings > Frontend Content and add sasa in Third party shortcode attributes.

#1144521

Thank you
it works fine

#1144522

My issue is resolved now. Thank you!