Skip Navigation

[Resolved] Support many-to-many (M2M) relationships in Create Post and Edit Post forms

This support ticket is created 6 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

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.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 2 replies, has 2 voices.

Last updated by reneV-2 6 years, 6 months ago.

Assisted by: Beda.

Author
Posts
#924687

Currently, a Create Post or Edit Post Form cannot create or edit M2M relationships, only one-to-many or one-to-one relationships. This is a real showstopper for site developers who want to allow users to add or edit Posts in an M2M relationship from the frontend. If I had known about this limitation upfront, I would not have chosen Toolset (although in many other respects it is a truly great suite of plugins). I hope you will be able to add this possibility soon!

#924981

This is correct, but you can create relationships.
This is done as described here for M2M:
https://toolset.com/documentation/post-relationships/how-to-build-front-end-forms-for-connecting-posts/
https://toolset.com/documentation/post-relationships/how-to-build-front-end-forms-for-connecting-posts/creating-new-connections-between-related-posts/

And here of all other relationships:
https://toolset.com/documentation/post-relationships/selecting-parent-posts-using-forms-create-child-items/

If you have a smooth redirection process from form to form you can let the user create post and connect them at ease.
With some custom code or if you wait for future development you can even bulk connect:
https://toolset.com/forums/topic/bulk-editing-relationships-in-the-new-toolset-3-format/

We are as well working constantly on new features, and I will add the request to be able to connect directly in a Single Post Edit Form a M2M relation.

#950357

Hi Beda, thanks for your helpful ideas! I will try to work out things with your suggestions. And thank you for adding a request to be able to connect directly in a Single Post Edit Form to a M2M relation.