charlesR-5
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 |
---|---|---|---|---|---|
Create custom title
Started by: charlesR-5
in: Toolset Professional Support
Problem: I would like to use the value of a date custom field to create a custom post title with CRED. Solution: The date field is not a simple text string in the $_POST object, but an array of values in this format: [wpcf-date-field-slug] => Array ( [display-only] => August 1, 2017 [datepicker] => 1501545600 [datetime] => 2017-08-01 [hour] => 00 [minute] => 00 [timestamp] => 1501545600 ) Use the cred_save_data hook to capture the custom date field information and update the post title as needed using one of these array values: [php]$display_date = $_POST['wpcf-date-field-slug']['display-only']; [php] Or, you can format your own date using the timestamp value. Relevant Documentation: |
2 | 3 | 7 years, 3 months ago | ||
Redirect after submit a forms
Started by: charlesR-5 in: Toolset Professional Support |
2 | 5 | 7 years, 4 months ago | ||
How to create a form with repeating fields groups using CRED
Started by: charlesR-5 in: Toolset Professional Support |
2 | 5 | 7 years, 4 months ago |