randallH-3
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 |
---|---|---|---|---|---|
How to exclude term name in [wpv-post-taxonomy]?
Started by: randallH-3 in: Toolset Professional Support |
2 | 2 | 4 years, 7 months ago | ||
Layout keeps on removing chart script from Venngage.
Started by: randallH-3
in: Toolset Professional Support
Problem: Solution: There are many ways to add a script tag. As a workaround, you can either:
|
2 | 5 | 4 years, 7 months ago | ||
Full width not working on 2020 theme
Started by: randallH-3 in: Toolset Professional Support |
2 | 9 | 4 years, 8 months ago | ||
How to add IP address as URL
Started by: randallH-3 in: Toolset Professional Support |
1 | 2 | 5 years, 6 months ago | ||
Save to custom field using custom function
Started by: randallH-3 in: Toolset Professional Support |
2 | 4 | 5 years, 8 months ago | ||
Plugin Compatibility
Started by: randallH-3 in: Toolset Professional Support |
2 | 3 | 5 years, 9 months ago | ||
Add “ALL” on taxonomy filter
Started by: randallH-3
in: Toolset Professional Support
Problem: How can I add "ALL" option on taxonomy filter? Solution: In Shortcode [wpv-control-post-taxonomy] in the custom search form, Relevant Documentation: https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-control-post-taxonomy |
2 | 5 | 5 years, 10 months ago | ||
Display parents of taxonomy in filter
Started by: randallH-3
in: Toolset Professional Support
Problem: How can I display parents of taxonomy in filter without checking them on the checkbox in the backend post edit? Solution: Please edit the view, in section "Custom Search Settings", enable option "Let me choose individual settings manually", choose option "Always show all values for inputs", and test again Relevant Documentation: |
2 | 14 | 5 years, 10 months ago | ||
Please enter a valid URL address pointing to the file.
Started by: randallH-3 in: Toolset Professional Support |
2 | 2 | 5 years, 11 months ago | ||
Comments are closing when I add a note on a post
Started by: randallH-3
in: Toolset Professional Support
Problem: Wordpress comments do not display in page with Toolset form for editing post Solution: It has been escalated, currently, I suggest you display a edit form link instead of the form itself. Relevant Documentation: https://toolset.com/documentation/user-guides/displaying-cred-editing-forms/ |
2 | 13 | 6 years, 2 months ago | ||
Layout same levels with Header and Footer
Started by: randallH-3
in: Toolset Professional Support
Problem: Solution: |
2 | 3 | 6 years, 3 months ago | ||
CRED form AJAX not working
Started by: randallH-3 in: Toolset Professional Support |
2 | 7 | 6 years, 3 months ago | ||
Set default value of non-toolset field on CRED save
Started by: randallH-3
in: Toolset Professional Support
Problem: I would like to use the cred_save_data API to set the value of a custom field that is not managed by Toolset. Solution: You can use the cred_save_data hook to add or change custom field information after the post is saved, even if the fields are not managed by Types. Types custom field slugs begin with "wpcf-" in the database, but other non-Toolset fields do not have this prefix. So if your custom field slug is "field-slug", then the code will look like this: add_action('cred_save_data', 'nonts_custom_field_value_action',10,2); function nonts_custom_field_value_action($post_id, $form_data) { $forms = array( 12345 ); // if a specific form if (in_array($form_data['id'], $forms)) { update_post_meta( $post_id, 'field-slug', 'field value' ); } } Change 12345 to match the numeric ID of this Form, change field-slug to match the slug of the custom field, and change field value to be the value you want to store in the custom field. Relevant Documentation: |
2 | 3 | 6 years, 3 months ago | ||
CRED forms adds \\ on CSS
Started by: randallH-3 in: Toolset Professional Support |
2 | 3 | 6 years, 3 months ago | ||
Custom post expiration and future publish date in Forms
1
2
Started by: randallH-3
in: Toolset Professional Support
Problem: I have a Form that is used to create posts. I would like to schedule those posts for future publication, and I would like to set a custom post expiration date based on the future publication date. When the post expires, I would like to modify a custom field value. Solution: add_action('cred_save_data', 'set_expiration_date',10,2); function set_expiration_date($post_id, $form_data) { $forms = array( 35927 ); if (in_array($form_data['id'], $forms)) { // update post publish date based on generic date field $timestamp = $_POST['wpcf-user-note-expiration-date']['datepicker']; $date = date('Y-m-d H:i:s', $timestamp); if(isset($timestamp)){ $args = array( 'ID' => $post_id, ); wp_update_post( $args ); // update post expiration date based on generic date field and time calculation $expiry_timestamp = $timestamp + ( 6 * 60 * 60 ); update_post_meta($post_id, '_cred_post_expiration_time', $expiry_timestamp ); } } } Add this code to modify the custom field value when the post expires: function my_custom_expire_actions($custom_actions, $post_id, $form_data) { $custom_actions[] = array( 'meta_key' => 'wpcf-membership-type', 'meta_value' => 'Charter' ); return $custom_actions; } add_filter('cred_post_expiration_custom_actions', 'my_custom_expire_actions', 10, 3); Relevant Documentation: |
2 | 23 | 6 years, 3 months ago |