Tim Elliott
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 | Sujet | Supporter | Voix | Publications | Nouveauté |
---|---|---|---|---|---|
View of related post to be filtered on checkbox field on intermediary post type
Commencé par : Tim Elliott
in: Toolset Professional Support
Problem: I have a many-to-many post relationship set up with a custom field applied to the intermediary post. On the single post page for one of the post types, I would like to display all the related posts, filtered by the custom field on the intermediary posts. Solution: Create a View of the intermediary post type, filtered by the custom field and also by post relationship, where the post is related to the current post or page. Then in the Loop, select the related post in the Post Selection tab when you insert any Fields or Views shortcodes. |
2 | 4 | Il y a 5 années et 7 mois | ||
Is there a list of frontend events
Commencé par : Tim Elliott
in: Toolset Professional Support
Problem: I would like to know if there is a list of front-end events I can use for AJAX Views. Solution: See the code here for a list of all event handlers currently offered. jQuery( document ).on( 'js_event_wpv_pagination_completed', function( event, data ) { /** * data.view_unique_id (string) The View unique ID hash * data.effect (string) The View AJAX pagination effect * data.speed (integer) The View AJAX pagination speed in miliseconds * data.layout (object) The jQuery object for the View layout wrapper */ }); jQuery( document ).on( 'js_event_wpv_parametric_search_triggered', function( event, data ) { /** * data.view_unique_id (string) The View unique ID hash * data.form (object) The jQuery object for the View form * data.update_form (bool) Whether the custom search form will be updated * data.update_results (bool) Whether the custom search results will be updated */ }); jQuery( document ).on( 'js_event_wpv_parametric_search_started', function( event, data ) { /** * data.view_unique_id (string) The View unique ID hash */ }); jQuery( document ).on( 'js_event_wpv_parametric_search_form_updated', function( event, data ) { /** * data.view_unique_id (string) The View unique ID hash * data.view_changed_form (object) The jQuery object for the View form after being updated * data.view_changed_form_additional_forms_only (object) The jQuery object containing additional forms from other instances of the same View inserted using the [wpv-form-view] shortcode * data.view_changed_form_additional_forms_full (object) The jQuery object containing additional forms from other instances of the same View inserted using the [wpv-view] shortcode */ }); jQuery( document ).on( 'js_event_wpv_parametric_search_results_updated', function( event, data ) { /** * data.view_unique_id (string) The View unique ID hash * data.layout (object) The jQuery object for the View layout wrapper */ }); jQuery( document ).on( 'js_event_wpv_addon_maps_init_map_started', function( event, data ) { }); jQuery( document ).on( 'js_event_wpv_addon_maps_init_map_inited', function( event, data ) { }); jQuery( document ).on( 'js_event_wpv_addon_maps_init_map_completed', function( event, data ) { }); jQuery( document ).on( 'js_event_wpv_addon_maps_reload_map_started', function( event, data ) { }); jQuery( document ).on( 'js_event_wpv_addon_maps_reload_map_completed', function( event, data ) { }); Relevant Documentation: |
2 | 3 | Il y a 5 années et 10 mois | ||
Loading content template for a Divi post not working
Commencé par : Tim Elliott
in: Toolset Professional Support
Problem: When I update the search filters in my View, the updated results are formatted incorrectly. Solution: Add suppress_filters="true" to the loop template shortcode. [wpv-post-body view_template="loop-item-in-course-search-toolset-test" suppress_filters="true"] |
2 | 4 | Il y a 5 années et 11 mois | ||
Call to undefined function get_current_screen() in is_block php
Commencé par : Tim Elliott
in: Toolset Professional Support
Problem: Withe Toolset Types plugin version 3.2 + Toolset form plugin version 2.2, there are some PHP errors: Fatal error: Uncaught Error: Call to undefined function get_current_screen() Solution: This is caused by Toolse fields, some of which have default validation rules, so no need to check for specific field types. Types 3.2.1 released with a fix for problem, you can download it here: https://toolset.com/account/downloads/ Relevant Documentation: |
3 | 11 | Il y a 6 années | ||
Add more than one product to cart with cred form
Commencé par : Tim Elliott in: Toolset Professional Support |
2 | 6 | Il y a 6 années | ||
WooCommerce Featured Flag in Views Filter
Commencé par : Tim Elliott
in: Toolset Professional Support
Problem: Solution: |
2 | 4 | Il y a 6 années et 3 mois | ||
Different template for different products
Commencé par : Tim Elliott
in: Toolset Professional Support
Problem: Solution: There is a workaround described in the main thread below to be able to switch between each depending on whether the product is a normal product or a Custom Product Box product. |
2 | 10 | Il y a 6 années et 3 mois | ||
Add Price Range Filters to Views Archive
Commencé par : Tim Elliott
in: Toolset Professional Support
Problem: Solution: You can find a proposed solution, in this case, with the following reply: Relevant Documentation: |
2 | 3 | Il y a 6 années et 3 mois | ||
Custom Field dropdown has extra blank entry that is selected by default
Commencé par : Tim Elliott in: Toolset Professional Support |
1 | 2 | Il y a 6 années et 4 mois | ||
Add a filterable taxonomy selector on a post custom search
Commencé par : Tim Elliott in: Toolset Professional Support |
2 | 2 | Il y a 6 années et 4 mois | ||
Taxonomy count for a post
Commencé par : Tim Elliott
in: Toolset Professional Support
Problem: The issue here is that the user wanted to count the number of terms that is attached to a post. Solution: // Add Shortcode function count_post_terms( $atts ) { // Attributes $atts = shortcode_atts( array( 'post_id' => '', 'taxonomy' => '', ), $atts ); $terms = wp_get_post_terms( $atts['post_id'], $atts['taxonomy']); return count($terms); } add_shortcode( 'count_post_terms', 'count_post_terms' ); Add the shortcode above to your functions.php file and you can use this shortcode [count_post_terms] to count the terms attached to a post. The exact example is. 1 |
2 | 3 | Il y a 6 années et 5 mois | ||
Claim ownership of a specific post with admin approval
Commencé par : Tim Elliott in: Toolset Professional Support |
1 | 2 | Il y a 6 années et 5 mois | ||
Adding text attribute to a product when adding it to cart using CRED form.
Commencé par : Tim Elliott in: Toolset Professional Support |
2 | 2 | Il y a 6 années et 6 mois | ||
Divi builder not loading when views activated
Commencé par : Tim Elliott
in: Toolset Professional Support
Problem: Solution: You can find proposed solution, in this case, with the following reply: Relevant Documentation: |
2 | 5 | Il y a 6 années et 6 mois | ||
Scroll to top on pagination when there a multiple paginated views in a page
Commencé par : Tim Elliott in: Toolset Professional Support |
2 | 6 | Il y a 6 années et 6 mois |