Marco Bolleter
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 |
---|---|---|---|---|---|
CRED Content Filter allowed HTML tags – convert not allowed instead of deleting
Started by: Marco Bolleter in: Toolset Professional Support |
2 | 5 | 7 years, 2 months ago | ||
Google Maps Argument “single_zoom” not working
Started by: Marco Bolleter
in: Toolset Professional Support
Problem: The single_zoom parameter on my map View does not seem to be working. Solution: In this case, the problem is that more than one result appears at the same exact location on this map, so the "single_zoom" setting never applies. It only applies when just one result is found, and it does not account for identical locations. So the other option here is to set a global maximum zoom level for this map. jQuery(document).on('js_event_wpv_addon_maps_init_map_completed', function() { var options = {'maxZoom': 13}; WPViews.view_addon_maps.get_map('map-1').setOptions( options ); }); Relevant Documentation: https://toolset.com/documentation/user-guides/display-on-google-maps/ |
2 | 12 | 7 years, 3 months ago | ||
Multiple Markes only shown after search change
Started by: Marco Bolleter
in: Toolset Professional Support
Problem: Some of the map markers do not appear in my map until the filters are changed. Solution: In this case, a 3rd-party plugin was responsible for the conflict. Disabling the "All in One SEO Pack Pro Plugin" - "Advanced Setting" / "Run Shortcodes In Autogenerated Descriptions" fixed the problem. |
2 | 3 | 7 years, 3 months ago | ||
Filter children out if parent status is not publish
Started by: Marco Bolleter
in: Toolset Professional Support
Problem: I have a View that shows child posts based on several filter criteria. I would also like to add a filter that only shows child posts whose parent post is published. Solution: Use wpv_filter_query to check each parent post's status, and build a list of post IDs to define the query's 'post__in' array. add_filter('wpv_filter_query', 'filter_children_by_parent_markt_published_func', 101, 3); function filter_children_by_parent_markt_published_func($query, $view_settings, $view_id) { if ( $view_id == 377) { global $wpdb; $ids = array(); $metas = $wpdb->get_results( "SELECT meta_value,post_id FROM wp_postmeta WHERE meta_key = '_wpcf_belongs_markt_id'" ); foreach($metas as $id) { if(isset($id->meta_value) && get_post_status($id->meta_value) == 'publish') { $ids[] = $id->post_id; } } $query['post__in'] = isset($query['post__in']) ? array_intersect($query['post__in'],$ids) : $ids; } return $query; } Relevant Documentation: https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-filter-query |
2 | 3 | 7 years, 3 months ago | ||
Change a page to Front Page and use Layouts
Started by: Marco Bolleter
in: Toolset Professional Support
Problem: Will I loose the Layout? Solution: Here are the steps to use a Layout on a page, and make that page the static front page without "losing" the Layout: 1. Create any Layout ==> The same Layout will be applied. |
2 | 6 | 7 years, 3 months ago | ||
Filter child post based on parent taxonomy – but not grouped by parent post
Started by: Marco Bolleter in: Toolset Professional Support |
2 | 2 | 7 years, 4 months ago |