Navigation überspringen

[Gelöst] Custom Marker for each category (Taxonomy)

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

Problem:
Custom Marker for each category (Taxonomy)

Solution:
To display different marker based on different taxonomy terms while using blocks, you will have to add conditional block and within conditional block you will have to add the "Fields and Text" block that should hold the marker shortcode.

You can find proposed solution in this case with the following reply:
https://toolset.com/forums/topic/custom-marker-for-each-categorie-taxonomy/#post-2329289

Relevant Documentation:
=> https://toolset.com/documentation/programmer-reference/maps/maps-shortcodes/#wpv-map-marker
=> https://toolset.com/course-lesson/using-toolset-conditional-block/

This support ticket is created vor 4 years, 2 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 -

Zeitzone des Unterstützers: Asia/Kolkata (GMT+05:30)

Dieses Thema enthält 4 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von sabrinaP vor 4 years, 2 months.

Assistiert von: Minesh.

Author
Artikel
#2329245

Tell us what you are trying to do?
We want on the following page: versteckter Link

Change the map markers by category.

Taxonomies are called:
Denkmalschutz (denkmalschutz)
Wohlfahrt (wohlfahrt)
Sportförderung (sportforderung)

Can you please help?
Is there any documentation that you are following?
https://toolset.com/forums/topic/different-map-markers/

Is there a similar example that we can see?

What is the link to your site?
versteckter Link

#2329263

Minesh
Unterstützer

Sprachen: Englisch (English )

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

Hello. Thank you for contacting the Toolset support.

Are you using the block view to display the Map? if yes, then we will require to use workaround to display the different marker per term as there is no way to display different marker when you use block view.

If you can share admin access details, I can check and try to apply the workaround.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2329275

Minesh
Unterstützer

Sprachen: Englisch (English )

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

Unfortunately, the admin access details you shared is not working at this end. Can you please send me working admin access details.

I have set the next reply to private which means only you and I have access to it.

#2329289

Minesh
Unterstützer

Sprachen: Englisch (English )

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

Could you please check now: versteckter Link

I've edit your block view and added the conditional blocks to check the taxonomy term assigned to post:
=> versteckter Link

And I've added the marker shortcode using the "fields and text" block within the conditional block with different marker image. Please check the following screenshot: versteckter Link

#2329297

My issue is resolved now. Thank you!