Mario
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 |
---|---|---|---|---|---|
Toolset and Elementor Tab Widget
Started by: Mario in: Toolset Professional Support |
2 | 11 | 5 years, 4 months ago | ||
Require at least one taxonomy term to submit a Form
Started by: Mario
in: Toolset Professional Support
Problem: I would like to set up some custom validation for a post Form. I would like to require at least one term from a custom taxonomy. Solution: Use the cred_form_validate API to test the value of the taxonomy field, and return an error if none is selected. function tssupp_require_sector($field_data, $form_data) { // Split $field_data into separate $fields and $errors list( $fields,$errors ) = $field_data; // validate specific form if ( $form_data['id']==2454) { // check at least one of required taxonomies set if ( empty( $fields['p-carer-time']['value'] ) ) { $errors['p-carer-time'] = 'You must choose at least one sector'; } } return array($fields,$errors); } add_filter( 'cred_form_validate', 'tssupp_require_sector', 10, 2 ); Relevant Documentation: |
2 | 7 | 5 years, 5 months ago | ||
Passing parameters and values in CRED form submit
Started by: Mario
in: Toolset Professional Support
Problem: Solution: You can find the proposed solution in this case with the following reply: Relevant Documentation: |
2 | 7 | 5 years, 5 months ago | ||
CPT created by function finding the the post for the view
Started by: Mario
in: Toolset Professional Support
Problem: Solution: You can find the proposed solution in this case with the following reply: Relevant Documentation: |
2 | 3 | 5 years, 5 months ago | ||
Keeping page logged in
Started by: Mario in: Toolset Professional Support |
1 | 2 | 5 years, 5 months ago | ||
Custom Search to find post_id
Started by: Mario in: Toolset Professional Support |
2 | 5 | 5 years, 5 months ago | ||
Creating a CPT immediately after creating a user
Started by: Mario
in: Toolset Professional Support
Problem: I would like to automatically create a post immediately after a new User form is submitted. Solution: The best way to do this is to create a post with custom code using the Forms API. Here's an example: https://toolset.com/forums/topic/auto-create-custom-post-after-new-user-submission/#post-492026 |
2 | 11 | 5 years, 5 months ago | ||
Best way to create a bookmarking option
Started by: Mario in: Toolset Professional Support |
2 | 2 | 5 years, 5 months ago | ||
Passing url params/values from one page to another
Started by: Mario
in: Toolset Professional Support
Problem: I want to take values passed from one page URL, Solution: You can use Views shortcode [wpv-search-term] to get the URL parameter value, and use it to setup your custom HTML link Relevant Documentation: https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-search-term |
2 | 3 | 5 years, 5 months ago | ||
Two forms on a page. Image removed when one form updated
Started by: Mario in: Toolset Professional Support |
2 | 11 | 5 years, 5 months ago | ||
Passing fields from user to post fields
Started by: Mario
in: Toolset Professional Support
Problem: I would like to place information about the current logged-in User in a Form as the default field value. Solution: You can use the wpv-user shortcode to place User information in the value attribute of a cred_field shortcode. [cred_field name="some-field" value="[wpv-user field='user_firstname']"] Relevant Documentation: https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-user |
2 | 3 | 5 years, 5 months ago | ||
not displaying views in more than 3 elemenor tabs
Started by: Mario
in: Toolset Professional Support
Problem: The issue here is that the user had 5 elementor tabs on their page, however after the 3rd tab nothing was being displayed. Solution: In this case the user had a Form in each tab but on the 3rd form there was a missing closing div tag which caused the other tabs not to load their content. I would recommend that you check your code for unclosed tags if this occurs for you. |
2 | 14 | 5 years, 6 months ago | ||
Elementor single post template not displaying in Page
Started by: Mario
in: Toolset Professional Support
Problem: I am using Elementor to create single post templates. When I try to display that template on a custom page, none of the custom fields display any content. Solution: Instead of placing the Elementor template shortcode in the Page, place it in the loop of a View that returns some post or posts. Otherwise, the template does not know which post you want to display. |
2 | 8 | 5 years, 6 months ago | ||
When I create a user – it is not kept logged in
Started by: Mario
in: Toolset Professional Support
Problem: I have a Form that creates new Users. After submitting the Form, I would like my User to be logged in. Solution: add_action( 'cred_save_data', 'tssupp_cred_autologin', 10, 2 ); function tssupp_cred_autologin( $post_id, $form_data ){ if ( 12345 == $form_data['id'] ) { if ( !empty( $_POST['user_email'] ) && !empty( $_POST['user_pass'] ) ) { $user = get_user_by( "email", $_POST['user_email'] ); $signon = array( 'user_login' => $user->user_login, 'user_password' => $_POST['user_pass'], 'remember' => true ); $login = wp_signon( $signon, false ); if ( is_wp_error($login) ) { error_log( $login->get_error_message() ); } } } } |
2 | 8 | 5 years, 7 months ago | ||
Update the form and it will not display
Started by: Mario in: Toolset Professional Support |
2 | 3 | 5 years, 7 months ago |