Problem:
How to create multiple entries posts using CRED form
Solution:
CRED forms can be attached to single post type and hence you can not create multiple entries using single CRED form BUT you can use CRED API hook cred_save_data to add your custom logic using which you can create multiple entries using CRED form.
You can use CRED hook: cred_save_data
Now, using above hook you can create child entry using the WordPress function - wp_insert_post :
You can find the proposed solution with the reply here
Relevant Documentation:
=> https://toolset.com/documentation/user-guides/cred-api/#csd
=> https://developer.wordpress.org/reference/functions/wp_insert_post/
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: Asia/Kolkata (GMT+05:30)
This topic contains 7 replies, has 2 voices.
Last updated by 7 years, 3 months ago.
Assisted by: Minesh.