Skip Navigation

[Resolved] Toolset maps

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

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

Last updated by toluO 5 years ago.

Assisted by: Christian Cox.

Author
Posts
#1657379
crops-map.jpg

Tell us what you are trying to do?
I'm trying to get the markers to show different colors based on categories. I created crops category and i'll like the different crops (markers) to show different colors on the map.

What is the link to your site?
It is currently on a Local host

#1657491

Hello, you can use conditional shortcodes to display different map markers based on whether or not the current post in the loop has a specific term. You should use the classic Views builder to implement these conditionals. The WordPress function has_term can be used for this purpose. You can use the has_term function in a conditional if you register has_term in Toolset > Settings > Front-end Content > Functions inside conditional evaluations.

Another ticket in the forum discusses the solution in some detail here: https://toolset.com/forums/topic/different-marker-image-in-a-single-map/

Let me know if you have questions about this and I can offer more direct guidance.

#1661479

My issue is resolved now. Thank you!