Skip Navigation

[Resolved] Self Post Type Many to Many Relationship

This support ticket is created 3 years, 11 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
- 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 5 replies, has 2 voices.

Last updated by Minesh 3 years, 11 months ago.

Assisted by: Minesh.

Author
Posts
#1639683

Tell us what you are trying to do?

let's say I have post type named 'Course'. I want to create relationship between this Course called `Related courses`. So when I relating Course A to Course B in Course A edit, I should see Course B related to Course A in Course B edit as well.

Is this possible?

#1639925

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

The title of the ticket and the information you shared with your initial post is different.

This is how you can connect the posts using post-relationship:
=> https://toolset.com/documentation/post-relationships/how-to-set-up-post-relationships-using-toolset/#how-to-connect-related-posts

For example:
You have post types 'Course' and 'Related courses' and you have post relationship created using these post types.
- Now, lets say you have "Course 1" added as post to post type Course and "Related course 1" added to post type 'Related courses'.
- So, when you editing "Course 1" you connected "Related course 1" to establish relationship between these posts.
- Now, when you edit "Course 1", it will display "Related course 1" within post-relationship box and when you edit "Related course 1" post, it will display "Course 1" as related post within the post-relationship box.

I hope the above information help you to understand how you can connect the post and how those related posts displayed within the post-relationship box.

#1640633

Hello, Minesh.

But you use 2 different post types here. What I wanted is to use only 1 post type (Course) and set the many-to-many relationship between Course(s). I have did this way, but once I set Course A related to Course B by Course A edit, I can't see my Course B is related to Course A in Course B edit page.

#1640765

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Toolset do not offer self-join post relationship.

Toolset offers the following post relationship and where with each post-relationship it will require two different post types:
- One to One
- One to Many
- Many to Many

Please check our Docs for more info:
=> https://toolset.com/documentation/post-relationships/

#1642509

Hmm, OK.

Another question is there any workaround to make the related post automatically have the same related post?
e.g. In Course A, I choose Course B as a related course and it automatically makes the Course B related to Course A.

Is this possible?
If yes, then how to make it happen?

Thanks.

#1642515

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

There is no such workaround available.

If you want to add a feature for self-join post-relationship, you should raise a feature request in front of our Product manager;
=> https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.