Skip Navigation

[Resolved] Stuck with dynamic markers

This support ticket is created 2 years, 2 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
- 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 2 replies, has 2 voices.

Last updated by pierre-yvesC 2 years, 2 months ago.

Assisted by: Minesh.

Author
Posts
#2448905

Hi,

Well, it seems I'm one of those who are stuck with dynamic map markers.

I tried https://toolset.com/forums/topic/different-map-marker-for-each-of-the-terms-within-a-taxonomy-on-map-view/

And unfortunately it doesn't work.

I'm using legacy View, so I put the code provided within the loop, right?

[wpv-conditional if="(has_term('secteurs', 'logement', null) eq '1')"]
[wpv-map-marker map_id="map-4" marker_icon="MyCustomMarkerURL" marker_id='marker-[wpv-post-id]' marker_field="wpcf-adresse" marker_title=" "]
[wpv-post-link]
[/wpv-map-marker]
[/wpv-conditional]

So, what do I do wrong?

Many thx

#2449269

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Here is the doc which you should follow and check to display conditional markers based on the category/taxonomy:
- https://toolset.com/documentation/legacy-features/views-plugin/displaying-taxonomies-conditionally/#specific

For example:

[wpv-conditional if="( CONTAINS(#(foreign-language),'chinese') )"]
<p>This consultant speaks Chinese!</p>
[/wpv-conditional]

Where:
- foreign-language is the taxonomy slug and 'chinese' is the taxonomy term.

You should try to adjust the code accordingly and see if that help you to resolve your issue. Please feel free to get in touch with me if you require further assistance.

#2449637

Many thx, I followed the instructions from https://toolset.com/forums/topic/different-map-marker-for-each-of-the-terms-within-a-taxonomy-on-map-view/ but I was wrong. Using regular conditional worked perfectly :o)