CRED is a WordPress plugin that lets you easily build front-end forms for creating and editing content and users.
CRED User Guides include detailed documentation on creating forms, including related fields that belong to the content or the users, validating the input and displaying the forms with custom HTML styling.
When you ask for help or report issues, make sure to tell us the versions of the Toolset plugins that you have installed and activated.
Viewing 15 topics - 496 through 510 (of 1,528 total)
I have created a custom post type creation form, but the form, upon submission, is not generating a new post. I have set the form to display the post just created, and I get an error that no such post exists.
Problem: I have a Form that creates child posts. If the featured image is not provided in the child post Form, I would like to copy the featured image from the parent post into the featured image of the child post.
Solution: If the parent post is not predefined, then you must use the Forms API to copy the parent post's featured image into the child post's featured image since the parent post cannot be determined at the time the Form is loaded. Use the cred_submit_complete API to automate the process. In that callback you can use toolset_get_related_post or toolset_get_related_posts to query the parent post, then get_post_meta to fetch the featured image, then update_post_meta in the child post to set the featured image programmatically.
Problem: I have a Form where Users are asked to check off several sets of checkbox custom fields. I would like to calculate how many of each type of checkbox was checked, and display the total number of checked checkboxes of each type in the post template.
Solution: Use the cred_save_data API and the Types Field API to determine which checkboxes were checked and add up the totals for each type of checkbox. Save those totals in 4 new custom fields, and display the values of those custom fields in the post template.