kevinS-30
Fils de soutien créés au cours des 30 derniers jours : 0
Sujets de forum favoris
This user has no favorite topics.
Sujets de forum créés
| Status | Topic | Supporter | Voix | Publications | Nouveauté |
|---|---|---|---|---|---|
|
Over the weekend -all sites ( including clones and backups ) failed
Commencé par : kevinS-30 in: Toolset Professional Support |
|
2 | 2 | Il y a 4 years, 6 months | |
|
Different map marker for each of the terms within a taxonomy on map view
Commencé par : kevinS-30
in: Toolset Professional Support
Problem: I have a map with markers coming from a View. Each post displayed in the View will have one term assigned from a custom taxonomy. Depending on the assigned term, I would like to display a different marker icon on the map. Solution: To use custom icons like this based on a taxonomy term, you cannot create the Markers using the configurations available in the Map block. Those Map block side configurations only allow for one icon to be used for all markers. Instead, you'll need to remove all Marker configurations from the Map block and insert a series of conditionals and Marker shortcodes in the View loop block. In a simple scenario there would be one conditional section for each different Marker icon. Here is a simple conditional section you can use as a template:
<!-- day-service icon -->
[wpv-conditional if="(has_term('day-service', 'service-type', null) eq '1')"]
[wpv-map-marker map_id="map-18" marker_icon="day-service-icon.svg" marker_id='marker-18-[wpv-post-id]' marker_field="wpcf-address"]
[wpv-post-link]
[/wpv-map-marker]
[/wpv-conditional]
<!-- other-service icon -->
[wpv-conditional if="(has_term('other-service', 'service-type', null) eq '1')"]
[wpv-map-marker map_id="map-18" marker_icon="other-service-icon.svg" marker_id='marker-18-[wpv-post-id]' marker_field="wpcf-address"]
[wpv-post-link]
[/wpv-map-marker]
[/wpv-conditional]
<!--additional conditional section for each icons should follow here -->
Since this code uses the WordPress function has_term in a conditional clause, you must register has_term in Toolset > Settings > Front-end Content, in Functions inside conditional evaluations. Relevant Documentation: |
|
2 | 10 | Il y a 4 years, 8 months | |
|
Images not displaying in gallery within post – Divi and Toolest
Commencé par : kevinS-30 in: Toolset Professional Support |
|
2 | 10 | Il y a 4 years, 9 months | |
|
Need to place widget javascript code in a field in the post editor & display FE
Commencé par : kevinS-30 in: Toolset Professional Support |
|
3 | 6 | Il y a 4 years, 9 months | |
|
On updating toolest plugins on this site – site gave a critical error
Commencé par : kevinS-30 in: Toolset Professional Support |
|
2 | 2 | Il y a 4 years, 12 months |