CRED plugin provides an API, making it easy to customize your post or user forms. The API includes hooks (actions and filters) to accomplish specific tasks using PHP code.
When you ask for help or report issues, make sure to tell us all related information about your form and what you want to achieve.
Viewing 15 topics - 406 through 420 (of 461 total)
Get child post of post reference field using PHP codes.
Solution:
The post reference field is also based on one-to-many relationship, you can follow the document I mentioned above to setup PHP codes using function toolset_get_related_posts().
I have a form which now has some required fields, such as name, state and county. I have a taxonomy called StatesCounties which is hierarchical, with a State and under it all of its Counties. But filling out the form does not set the taxonomy, or i thought it used to but not now. How to make sure if someone fills out this form, those taxonomies get included in its data?
Problem: I would like to display a multi-line input field instead of the standard WYSIWYG post content field in a Form that creates posts.
Solution: Use a generic multiline field and delete the standard post content field. Use the cred_save_data hook to replace the post content with the generic field content.