bradC-8
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 |
---|---|---|---|---|---|
Address Field; Display Map
Started by: bradC-8 in: Toolset Professional Support |
2 | 5 | 5 years, 8 months ago | ||
Allow User to Add Custom Taxonomy
Started by: bradC-8 in: Toolset Professional Support |
2 | 2 | 5 years, 8 months ago | ||
Post Title Created from Form Fields
Started by: bradC-8
in: Toolset Professional Support
Problem: The issue here is that the user wanted to create a custom post title from their custom fields. Solution: This can be done by using the Hook below as an example add_action('cred_save_data','func_custom_post_title',10,2); function func_custom_post_title($post_id,$form_data) { if ($form_data['id']==XXXX) { $field_1 = $_POST['wpcf-field-slug-1'] $field_2 = $_POST['wpcf-field-slug-2'] $args = array('ID' => $post_id, 'post_title' => $field_1.' '.$field_2); wp_update_post($args); } } Now in this user's case we are using 2 custom fields as you can see from teh $field_1 and $field_2 variable. Add this to your toolset custom code in Toolset -> Settings -> Custom code and then activate it. Notice you must change the XXXX to the ID of your form. |
2 | 8 | 5 years, 8 months ago | ||
Pull Hidden Field Values From DB
Started by: bradC-8 in: Toolset Professional Support |
2 | 2 | 5 years, 8 months ago | ||
Conditional Field Not Displayed in Form
Started by: bradC-8 in: Toolset Professional Support |
1 | 4 | 5 years, 8 months ago | ||
Create Post Title Using Submitted Field Data
Started by: bradC-8
in: Toolset Professional Support
Problem: The issue here is that the user wanted to create a custom post title from their custom fields. Solution: This can be done by using the Hook below as an example add_action('cred_save_data','func_custom_post_title',10,2); function func_custom_post_title($post_id,$form_data) { if ($form_data['id']==XXXX) { $field_1 = $_POST['wpcf-field-slug-1'] $field_2 = $_POST['wpcf-field-slug-2'] $args = array('ID' => $post_id, 'post_title' => $field_1.' '.$field_2); wp_update_post($args); } } Now in this user's case we are using 2 custom fields as you can see from teh $field_1 and $field_2 variable. Add this to your toolset custom code in Toolset -> Settings -> Custom code and then activate it. Notice you must change the XXXX to the ID of your form. |
2 | 5 | 5 years, 8 months ago | ||
Add Textarea Field
Started by: bradC-8
in: Toolset Professional Support
Problem: Trying to add a textarea field to a new custom post type. Is there any documentation that you are following? Solution: Yes, it is possible, please follow our document to setup the custom textarea(Multiple lines) field: Relevant Documentation: https://toolset.com/documentation/user-guides/using-custom-fields/ |
2 | 3 | 5 years, 8 months ago | ||
Docs/Instructions
Started by: bradC-8 in: Toolset Professional Support |
1 | 2 | 5 years, 8 months ago |