daniloP-2
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Renew
Started by: daniloP-2
in: Toolset Professional Support
Problem: I would like to know more about what happens to sites developed with Toolset if my Toolset license expires. Solution: The software will continue to function on the site, but you will no longer be able to update to the latest versions of the software and you will no longer have access to customer support. If you renew later, your work will remain in the database even if your registration expires. |
2 | 5 | 5 years, 1 month ago | ||
Two checkbox "Special offer" and "Promoted on the slider" doesn't work
Started by: daniloP-2 in: Toolset Professional Support |
2 | 3 | 6 years, 5 months ago | ||
How to link user with custom type
Started by: daniloP-2 in: Toolset Professional Support |
2 | 2 | 6 years, 8 months ago | ||
requested multi choose field
Started by: daniloP-2 in: Toolset Professional Support |
2 | 2 | 6 years, 8 months ago | ||
Different Custom Marker in a map based on a custom taxonomy
Started by: daniloP-2
in: Toolset Professional Support
Problem: I have a Map View that includes several Markers. I would like to show different custom marker icons depending on the terms assigned to each post. If one term is assigned, use a custom Marker image specific to that term. If more than one term is assigned, use a custom "multiple term" Marker. Solution: Add the following custom shortcode to determine how many terms are assigned to the current post in the loop: function ts_get_post_tax_term_count_func( $atts ) { $a = shortcode_atts( array( 'postid' => '0', 'taxonomy' => null ), $atts ); $terms = wp_get_post_terms( $a['postid'], $a['taxonomy']); return is_wp_error( $terms ) ? 0 : sizeof($terms); } add_shortcode( 'ts_get_post_tax_term_count', 'ts_get_post_tax_term_count_func'); Go to Toolset > Settings > Frontend content, and register both "has_term" and "ts_get_post_tax_term_count_func" to be used in conditionals and in 3rd party shortcode arguments. Then use the custom shortcode in combination with has_term to display the proper markers: Multiple types: [wpv-conditional if="('[ts_get_post_tax_term_count postid='[wpv-post-id]' taxonomy='facebook-type']' gt '1')"]https://www.tripup.it/wp-content/plugins/toolset-maps/resources/images/markers/MULTIPLE-MARKER.png[/wpv-conditional] Only one type - arte-e-intrattenimento: [wpv-conditional if="('[ts_get_post_tax_term_count postid='[wpv-post-id]' taxonomy='facebook-type']' eq '1') AND (has_term('arte-e-intrattenimento', 'facebook-type', null) eq '1')"]https://www.tripup.it/wp-content/uploads/2018/02/marker_shopping_web_white.png[/wpv-conditional] Only one type - ospitelita: [wpv-conditional if="('[ts_get_post_tax_term_count postid='[wpv-post-id]' taxonomy='facebook-type']' eq '1') AND (has_term('ospitelita', 'facebook-type', null) eq '1')"]https://www.tripup.it/wp-content/uploads/2018/02/OSPITELITA-MARKER.png[/wpv-conditional] ... copy and paste the block above for each facebook-type... No types: [wpv-conditional if="( [ts_get_post_tax_term_count postid='[wpv-post-id]' taxonomy='facebook-type'] eq '0')"]https://www.tripup.it/wp-content/plugins/toolset-maps/resources/images/markers/default.png[/wpv-conditional] Relevant Documentation: |
2 | 6 | 6 years, 9 months ago | ||
Map Field show only a point in Pacific Ocean, even if the field is correct
Started by: daniloP-2
in: Toolset Professional Support
Problem: The issue here is that the user's map isn't showing any markers and just showing the ocean. Solution: |
2 | 7 | 6 years, 10 months ago |