Problem:
I want to allow users to select parent posts in a many-to-many (M2M) relationship directly within a post form.
Solution:
In Toolset, managing many-to-many (M2M) relationships typically requires a separate Relationship Form. This is because post forms are designed to edit the main content, taxonomies, and custom fields of a post, while relationship management is handled separately.
Steps to Use a Relationship Form for M2M:
- Create a Relationship Form to manage the connections between posts.
- Display the form on the front end where users can connect or disconnect related posts.
Relevant Documentation:
https://toolset.com/course-lesson/front-end-relationship-forms-for-connecting-posts/
https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data
https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/
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.
This topic contains 3 replies, has 1 voice.
Last updated by 1 week, 3 days ago.
Assisted by: Christopher Amirian.