Skip Navigation

[Resolved] Post form does not show many to many relationships

This thread is resolved. Here is a description of the problem and solution.

Problem:
The post form does not display many-to-many relationships, preventing the selection of existing items during post creation.
Solution:
Create a separate Relationship form to handle many-to-many relationships. Follow the steps outlined in this guide: https://toolset.com/course-lesson/front-end-relationship-forms-for-connecting-posts/

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 5 replies, has 2 voices.

Last updated by Christopher Amirian 10 months ago.

Assisted by: Christopher Amirian.

Author
Posts
#2691128

I made a post form. It automatically detected one to many relationship and displayed. Texonomy was also correct. But apparently there is no way to add existing many to many relationships. Kindly help.

#2691274

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

To be able to handle many-to-many relationships you need to create a Relationship form.

Here is how to do so:

https://toolset.com/course-lesson/front-end-relationship-forms-for-connecting-posts/

Thank you.

#2691287

Sir, actually the purpose of form is to submit new post by the member. That's why I used post form. At the time of making new post items are needed to be selected from many side. How to do this?

#2691450

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

That i snot possible. The nature of the many to many relationship prevents that. That is why we have a separate Form type to handle the many to many relationship.

Thank you for your understanding.

#2691469

Ok. That's fine. But then how to use relationship form for the purpose of post submission?

#2691575

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

That is correct, you will need to have a separate post form and relationship form.

And you can use the method below to kind of connect them:

https://toolset.com/forums/topic/linking-post-form-and-relationship-form/

Thanks.

#2692246

Just closing this ticket. thanks for guiding to one solution link. Will try or may go for simpler manual option.