Passer la navigation

[Résolu] Different color Map Markers based on CPT

This support ticket is created Il y a 3 years, 3 months. 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Fuseau horaire du supporter : Asia/Kolkata (GMT+05:30)

Ce sujet contient 1 reply, a 2 voix.

Dernière mise à jour par Minesh Il y a 3 years, 3 months.

Assisté par: Minesh.

Auteur
Publications
#2569467

I have a map on my site's home page that uses a CPT for the map markers. Is it possible to use one of the CPT fields to have different markers use different colors?

#2569887

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Yes, you can use the conditional display to compare the custom field or post type value and add the different markers as requied.

Here is the related ticket that might help you and you can adjust the code as required:
- https://toolset.com/forums/topic/how-to-assign-different-types-of-markers-based-on-a-field-value/#post-2159587

Please let me know if you require further assistance.