Tim Elliott
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 |
---|---|---|---|---|---|
Loading content template for a Divi post not working
Started by: 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 | 5 years, 11 months ago | ||
Call to undefined function get_current_screen() in is_block php
Started by: 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 | 6 years ago | ||
Add more than one product to cart with cred form
Started by: Tim Elliott in: Toolset Professional Support |
2 | 6 | 6 years ago | ||
WooCommerce Featured Flag in Views Filter
Started by: Tim Elliott
in: Toolset Professional Support
Problem: Solution: |
2 | 4 | 6 years, 3 months ago | ||
Different template for different products
Started by: 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 | 6 years, 3 months ago | ||
Add Price Range Filters to Views Archive
Started by: 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 | 6 years, 3 months ago | ||
Custom Field dropdown has extra blank entry that is selected by default
Started by: Tim Elliott in: Toolset Professional Support |
1 | 2 | 6 years, 4 months ago | ||
Add a filterable taxonomy selector on a post custom search
Started by: Tim Elliott in: Toolset Professional Support |
2 | 2 | 6 years, 4 months ago | ||
Taxonomy count for a post
Started by: 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 | 6 years, 5 months ago | ||
Claim ownership of a specific post with admin approval
Started by: Tim Elliott in: Toolset Professional Support |
1 | 2 | 6 years, 5 months ago | ||
Adding text attribute to a product when adding it to cart using CRED form.
Started by: Tim Elliott in: Toolset Professional Support |
2 | 2 | 6 years, 6 months ago | ||
Divi builder not loading when views activated
Started by: Tim Elliott
in: Toolset Professional Support
Problem: Solution: You can find proposed solution, in this case, with the following reply: Relevant Documentation: |
2 | 5 | 6 years, 6 months ago | ||
Scroll to top on pagination when there a multiple paginated views in a page
Started by: Tim Elliott in: Toolset Professional Support |
2 | 6 | 6 years, 7 months ago | ||
Views Conditional wpv-post-author problem
Started by: Tim Elliott
in: Toolset Professional Support
Problem: I have a conditional that tests the current User against the author of a post. The conditional works in the context of a post, but I would like to use the same conditional in another page where the post ID is set by a URL parameter. Solution: You could use a custom shortcode like this instead: [wpv-conditional if="('[wpv-current-user info='user_login']' eq '[author_login_from_post_id_param]')"] Content 2 [/wpv-conditional] Add this code to your child theme's functions.php file: function author_login_from_post_id_param_func($atts) { $postid = isset($_GET['postid']) ? $_GET['postid'] : 0; $thepost = $postid ? get_post($postid) : 0; $author = $thepost ? $thepost->post_author : 0; $login = $author ? get_the_author_meta('user_login', $author) : ''; return $login; } add_shortcode("author_login_from_post_id_param", "author_login_from_post_id_param_func"); Then go to Toolset > Settings > Frontend Content and register author_login_from_post_id_param in the third-party shortcodes section. |
2 | 3 | 6 years, 7 months ago | ||
Cred maximum upload size for file type field
Started by: Tim Elliott
in: Toolset Professional Support
Problem: I would like to validate the file size of files uploaded to a custom field in CRED. Solution: Use the cred_form_ajax_upload_validate hook to test upload file sizes. Use conditionals to check each file individually. // For the resource file upload - check that the file is a PDF under 1MB in size. add_filter('cred_form_ajax_upload_validate','cred_filetype_size_validation',10,2); function cred_filetype_size_validation($error_fields, $form_data) { //field data are field values and errors list($fields,$errors)=$error_fields; //validate if specific form if ( ($form_data['id']==889) || ($form_data['id']==846) ) { if(isset($fields['wpcf-resource-file'])) { //Retrieve file type $file_type_uploaded=$fields['wpcf-resource-file']['field_data']['type']; //Retrieve file size $file_size_uploaded=$fields['wpcf-resource-file']['field_data']['size']; //check if featured image exists if ( ($file_size_uploaded > 1000000) || ($file_type_uploaded != 'application/pdf') ) { //set error message for featured image $errors['Resource File'] = 'Sorry the file you have uploaded is not of correct type (PDF) or exceeded 1MB limit'; } } } //return result return array($fields,$errors); } Relevant Documentation: |
2 | 5 | 6 years, 7 months ago |