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 - 1,186 through 1,200 (of 1,352 total)
Problem:
The user would like to assign some taxonomy terms, to a post created using a Toolset form, automatically.
Solution:
The code that you shared seems to create a Reg User post. If you want to create a taxonomy term, you will need to use the function wp_insert_term. And if you want to assign the taxonomy term to the post, you can use the wp_set_object_terms function.
To get the value of the field, use the get_post_meta function or you can use the $_POST array data. You may need to add the wpcf- prefix to the field slug.
Problem: When a required field is not filled in my Form upon submission, the browser scrolls to the top of the page but the field is hidden by a fixed header.
Solution: Add some CSS to influence the top scroll position of the document:
Problem: I have a Form that creates child posts. When the child post is published, I would like to send an automatic email notification to an email address specified in the parent post's custom fields, but I cannot specify that field in the notification settings.
Solution: You can use some custom PHP code with the cred_notification_recipients API and the toolset_get_related_post API to query the parent post, get the custom field value, and add that email address to the recipients list programmatically: