Skip Navigation

[Resolved] Different color Map Markers based on CPT

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 3.02 hours from now. Thank you for your understanding.

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 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 1 year, 8 months ago.

Assisted by: Minesh.

Author
Posts
#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

Languages: English (English )

Timezone: 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.