Joe H.
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 |
---|---|---|---|---|---|
integration with Vimeo Video Post plugin
Started by: Joe H.
in: Toolset Professional Support
Problem: I purchased the pro version of Vimeo Video Post plugin and am trying to get it to work with Toolset. This plugin creates a CPT in WordPress and not only imports Vimeo videos but also the meta-data for each video directly from Vimeo, including the thumbnail, description, title, etc. as entered in the settings for each video on Vimeo.com, I am hoping to use this CPT and this meta data in Views. I want to display the thumbnail and title of the video on the front end that links to a page containing the video itself. I can see the vimeo-video CPT in my Toolset dashboard but I am unable to create a field group in order to create a View. Solution: The "vimeo-video-post" plugin stores field value as an array in a single custom field "__cvm_video_data", so it can not be displayed directly within Views shortcode, but you can create a custom shortcode for it, for example, you can use wordpress function add_shortcode() to register a new custom shortcode https://codex.wordpress.org/Function_Reference/add_shortcode And get the value of custom field "__cvm_video_data" from database: Then output values as what you want, I suggest you check it with the author of Vimeo Video Post plugin, check if there is any existed shortcode within Vimeo Video Post plugin, if there isn't add a feature request for it. Relevant Documentation: https://codex.wordpress.org/Function_Reference/add_shortcode |
2 | 3 | 6 years, 9 months ago | ||
Hide search results until user selects filter, and show only the available inputs
Started by: Joe H.
in: Toolset Professional Support
Problem: I have a custom search View with multiple taxonomy filters. I would like to show the results "empty" until the User selects a filter. I also would like to use the Advanced Option "Only show available inputs". Solution: add_filter( 'wpv_filter_query_post_process', 'drop_empty_search_query_post_process', 10, 3 ); function drop_empty_search_query_post_process( $query, $view_settings, $view_id ) { $ids = array(10243); if (in_array($view_id, $ids)){ if ( // taxonomy filter needs to check for not '0' as well as not empty ( isset($_GET['wpv-ccb_core_group_area']) && $_GET['wpv-ccb_core_group_area'] != '0' ) || // taxonomy filter needs to check for not '0' as well as not empty ( isset($_GET['wpv-ccb_core_group_day']) && $_GET['wpv-ccb_core_group_day'] != '0' ) || // taxonomy filter needs to check for not '0' as well as not empty ( isset($_GET['wpv-ccb_core_group_time']) && $_GET['wpv-ccb_core_group_time'] != '0' ) || // taxonomy filter needs to check for not '0' as well as not empty ( isset($_GET['wpv-ccb_core_group_type']) && $_GET['wpv-ccb_core_group_type'] != '0' ) || // initial load fix for "only show available inputs", this input does not exist ( isset($_GET['wpv_update_check']) ) ) { } else { $query->posts = array(); $query->found_posts = 0; $query->post_count = 0; } } return $query; } Relevant Documentation: |
2 | 3 | 6 years, 10 months ago | ||
hyperlinking an embedded media field to post url
Started by: Joe H.
in: Toolset Professional Support
Problem: I would like to use the URL of an image from a Types custom field, providing my own height and width dimensions, to build a custom "img" tag surrounded by an "a" tag. Solution: Use the output="raw" attribute on the types field shortcode to strip out any extra HTML formatting applied to the image URL. <a class="featured-image" href="[wpv-post-url]"> <img src='[types field="series-image" size="custom" width="960" height="540" crop="true" output="raw"][/types]'></a> Relevant Documentation: https://toolset.com/documentation/customizing-sites-using-php/functions/#image |
2 | 4 | 7 years, 2 months ago | ||
include parent CPT in child CPT permalink
Started by: Joe H. in: Types Community Support |
2 | 3 | 7 years, 2 months ago | ||
How to display embedded video as a recent post
Started by: Joe H. in: Types Community Support |
2 | 3 | 7 years, 2 months ago |