Communication lost
Started by: stephaneB-5
in: Toolset Professional Support
2
4
3 years, 12 months ago
Minesh
Content template being set to Toolset by default instead of None
Started by: patrickD-6
in: Toolset Professional Support
2
3
3 years, 12 months ago
patrickD-6
Different map marker for each of the terms within a taxonomy on map view
Started by: kevinS-30
in: Toolset Professional Support
Quick solution available
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:
https://toolset.com/documentation/programmer-reference/maps/maps-shortcodes/
2
10
3 years, 12 months ago
kevinS-30
Post Excerpt in View Needs To Display The Media Player from an Embed
Started by: marcusC-4
in: Toolset Professional Support
Quick solution available
2
6
3 years, 12 months ago
marcusC-4
Possible conflict between exisitng ACF fields and Toolset fields "This dynamic..
Started by: annS-6
in: Toolset Professional Support
2
11
3 years, 12 months ago
Christian Cox
Content Template Fields Disappeared
Started by: thoraldM
in: Toolset Professional Support
2
6
3 years, 12 months ago
thoraldM
Allow members with a subscription to customize the website interface (Front-End)
Started by: frederiqueC
in: Toolset Professional Support
2
6
3 years, 12 months ago
Christian Cox
Archive results no longer showing on front end if map also enabled after update
Started by: Don
in: Toolset Professional Support
2
2
3 years, 12 months ago
Jamal
WordPress Archive for Products not Updating
Started by: benE-3
in: Toolset Professional Support
Quick solution available
Problem:
The user has an issue with an archive template for one specific product. A condition based on the product stock was not evaluating correctly.
Solution:
Changing the conditions from using variables to using shortcode fixed the issue.
Changing:
[wpv-conditional if="( $(views_woo_in_stock) eq '1' )"]In stock[/wpv-conditional][wpv-conditional if="( $(views_woo_in_stock) eq '0' )"]Out of stock[/wpv-conditional]
To:
[wpv-conditional if="( '[types field='views_woo_in_stock'][/types]' eq '1' )"]In stock[/wpv-conditional]
[wpv-conditional if="( '[types field='views_woo_in_stock'][/types]' eq '0' )"]Out of stock[/wpv-conditional]
2
3
3 years, 12 months ago
benE-3
Passing parameters via url
Started by: michaelH-40
in: Toolset Professional Support
2
6
3 years, 12 months ago
Jamal
Can you toolset_get_related_post(s) function to retrieve posts by user ID?
Started by: himanshuS
in: Toolset Professional Support
Quick solution available
Problem:
The user would like to programmatically get related posts that are created by the current user.
Solution:
That's not possible with the Toolset API. We need to, first, get the related posts, then we can use a wp_query to get the current user's posts within them. This is an example code:
$applications = toolset_get_related_posts($post->ID, 'job-to-job-application', 'child');
$posts = get_posts(array(
'author' => get_current_user_id(),
'post__in' => $applications
));
if( count( $posts ) > 0) {
echo 'View Application';
}
else {
echo 'Apply';
}
Relevant Documentation:
2
3
4 years ago
himanshuS
Registered but can't update
Started by: yael-kelliR
in: Toolset Professional Support
2
5
4 years ago
yael-kelliR
PHP get the parent id
Started by: kelvinL-2
in: Toolset Professional Support
2
9
4 years ago
kelvinL-2
Changing the font size of the body text on mobile devices for a custom post type
Started by: andrewS-21
in: Toolset Professional Support
2
2
4 years ago
Jamal
Changing the font size of the body text on mobile devices for a custom post type
Started by: andrewS-21
in: Toolset Professional Support
2
2
4 years ago
Jamal