Skip Navigation

[Resolved] displaying map from taxonomy

This support ticket is created 7 years 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.

Our next available supporter will start replying to tickets in about 1.72 hours from now. Thank you for your understanding.

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 1 reply, has 2 voices.

Last updated by Christian Cox 7 years ago.

Assisted by: Christian Cox.

Author
Posts
#589492
Screen Shot 2017-11-14 at 4.19.31 PM.png
Screen Shot 2017-11-14 at 4.18.38 PM.png
Screen Shot 2017-11-14 at 4.18.24 PM.png

hi dear,,
i have question about displaying map in a single content for custom post type from taxonomy,, like i made taxonomy called 9 location ) and it have city and region,,how can i display this in single template???
i also added term fields (address) to . location taxonomy to set map to each city/town

i searched a lot in your forum support and i try everything nothing work

#589622

From the pictures, it looks like you are trying to place your term information directly in the Content Template for your post. That won't work, because you need to first determine which terms are associated with the current post. Here's how I would set this up:
1. Create a View of your Locations Taxonomy. Add a Query Filter that filters by taxonomy term, where the term is set by the current post or current page. This means that the View will loop over all the terms associated with the current post.
2. In the Loop Output area, insert the map fields you currently have placed in the Content Template. Place wpv-map-render outside the loop, and place wpv-map-marker inside the loop.
3. Remove the map fields from the Content Template.
4. Insert the Locations Taxonomy View into the Content Template.

Let me know if you are able to display the map correctly with these changes.