Armando
Support threads created in the last 30 days: 0
Favorite Forum Topics
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Set publish date of post
Started by: chrisH-10
in: Toolset Professional Support
Problem: I would like to set the publish date and time of a post within the CRED Form used to create that post. Solution: There's no post publish date field built into CRED, so this will require some custom code and a generic field. Add a generic date field to your CRED form, then add this code to functions.php: add_action('cred_save_data', 'set_post_date_to', 100, 3); function set_post_date_to($post_id, $form_data) { if( $form_data['id'] == 12345 ) { $newDate = $_POST['set-new-date']['datetime'] . ' 00:00:00'; $my_post = array( 'ID' => $post_id, 'post_date' => $newDate, 'post_date_gmt' => $newDate, 'post_status' => 'future' ); // Update the post into the database wp_update_post( $my_post ); } } - Change the form id 12345 to match your form. Relevant Documentation: |
2 | 5 | 7 years, 1 month ago |
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Views no longer working with selecting post type
Started by: Armando in: Toolset Professional Support |
2 | 8 | 1 year, 1 month ago | ||
CRED form will not submit required fields even though everything is filled
Started by: Armando in: Toolset Professional Support |
3 | 14 | 1 year, 1 month ago | ||
toolset-edit-post-link Stopped working
Started by: Armando in: Toolset Professional Support |
2 | 7 | 2 years, 5 months ago | ||
WYSIWYG Saving issues
Started by: Armando in: Toolset Professional Support |
2 | 7 | 2 years, 10 months ago | ||
Captcha field missing in forms
Started by: Armando
in: Toolset Professional Support
Problem: I cannot find the captcha field in the Form builder Solution: There is a known issue where captcha is not appearing in the drag-and-drop form builder. Use the workaround in the erratum post until the problem is resolved. Relevant Documentation: https://toolset.com/errata/cannot-insert-recaptcha-field-in-a-form-when-the-expert-mode-is-active/ |
2 | 4 | 3 years, 3 months ago | ||
Previous Ticket Follow Up
Started by: Armando in: Toolset Professional Support |
2 | 2 | 4 years, 5 months ago | ||
Removing | Use My Location
Started by: Armando in: Toolset Professional Support |
2 | 6 | 4 years, 5 months ago | ||
Yoast SEO from a View
Started by: Armando in: Toolset Professional Support |
2 | 5 | 4 years, 11 months ago | ||
Conditional HTML based results returned by a View
Started by: Armando
in: Toolset Professional Support
Problem: Solution: You could use the View "Disable the wrapping DIV around the View" option, which would allow you to return a raw loop, and use that in an HTML condition, but the problem is that this option ONLY applies to what's WITHIN the loop of a View, and the TOTAL of posts found, needed in this case, cannot be inserted INSIDE the loop. Hence you need to use the custom code solution above for this case. |
2 | 4 | 5 years, 2 months ago | ||
Reset password form missing username
Started by: Armando in: Toolset Professional Support |
2 | 3 | 5 years, 2 months ago | ||
JS Editor removed code but shows up in page code
Started by: Armando in: Toolset Professional Support |
2 | 4 | 5 years, 3 months ago | ||
Edit post link opens same window
Started by: Armando in: Toolset Professional Support |
2 | 5 | 5 years, 3 months ago | ||
_cred_post_expiration_time not working
Started by: Armando
in: Toolset Professional Support
Problem: Update _cred_post_expiration_time field with action hook cred_save_data. Solution: You can use a high priority value in action cred_save_data hook, for example: https://toolset.com/forums/topic/_cred_post_expiration_time-not-working/#post-1285885 Relevant Documentation: https://developer.wordpress.org/reference/functions/add_action/ |
2 | 3 | 5 years, 4 months ago | ||
Sort not working properly anymore
Started by: Armando
in: Toolset Professional Support
Problem: Sort view's result by custom numeric field. Solution: You can setup the sort setting of view, for example: https://toolset.com/forums/topic/sort-not-working-properly-anymore/#post-1233664 Relevant Documentation: |
3 | 9 | 5 years, 7 months ago | ||
Display Taxonomy Posts First
Started by: Armando in: Toolset Professional Support |
2 | 4 | 5 years, 7 months ago |