Skip Navigation

[Resolved] relationship

This support ticket is created 3 years, 9 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Juice Rocket® 3 years, 9 months ago.

Assisted by: Shane.

Author
Posts
#1962999

We need to link multiple posts to each other, in several new sites we have to build for clients. Our developer told us:

"Actually toolset doesn't allow to select parent when relationship is many to many
Like in this case we wanted to select one or more celebrities
They have it for 'one to many' and 'one to one'
But for 'many to many' its an issue"

For example, we need to connect one or more posts about towns, to news and classifieds about those towns. In another site, we need to connect celebrity bios, to news and reviews about the involved celebrities.

#1963095

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Thank you for getting in touch.

"Actually toolset doesn't allow to select parent when relationship is many to many"

This is false, if you want to connect the posts on the frontend in a many to many relationship you will need to make use of a relationship form. It is true that with a normal one to many or one to one, you can setup the relationships when the post is being created on the frontend.

However when using many to many relationship, the approach that is used is to create a relationship form to connect the posts on the frontend. Have a look at this documentation below.
https://toolset.com/course-lesson/front-end-relationship-forms-for-connecting-posts/

The relationship form requires that the Post has already been created, and you will add the form to the template of the page that you want to connect to another post.

Problems that you will face here is that if you want to connect multiple parents at the same time you won't be able to as you can only do it one at a time from the frontend.

Ofcourse you do have the option to hide this form and allow it to only be visible to the users who should have access to see it. This can be done with our Access plugin by going to Toolset -> Access Control -> Toolset Forms.

If there is anything that you are not clear about please let me know and I will be more than happy to clarify.

Thanks,
Shane

#1966603

Can you please update it so that it's easier to do many-to-many and multiple parents? That would be great. Thank you!

#1966747

My issue is resolved now. Thank you!