Skip Navigation

[Resolved] Ancestry Post Type Relationships

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

Problem:
Ancestry Post Type Relationships where is it possible to implement self-join.

Solution:
Self join relationships is not supported yet but we already file feature request for it.

you can find proposed solution, in this case, with the following reply:
https://toolset.com/forums/topic/ancestry-post-type-relationships/#post-895717

Relevant Documentation:

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
- 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 1 reply, has 2 voices.

Last updated by Minesh 6 years, 6 months ago.

Assisted by: Minesh.

Author
Posts
#894612

I have been using TOOLSET now for 4 years and I use it exclusively. It is a fabulous tool.

Now, I might be have a "brain dump" moment... but I cannot figure out the best way to approach an ancestry type issue.

I plan on building a Dog Breeding website for a customer.

The post type that I plan on using will be DOGS.

I want the client to be able to add their DOGS. Once added, they will have a SEX TAXONOMY (Male or Female).

Then when another DOG is added that might be a puppy of the DOGS created above, I would like to create that relationship.

Eventually more puppies will be added and they too with be assigned to the taxonomy of Male or Female and they too will also have puppies of their own someday.

How do I accomplish a seemingly endless ancestral relationship between this post type.

I really only want one post type... because they are all DOGS.

Any suggestions on how to accomplish this lineage relationship?

#895717

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Well - self join relationships is not supported yet but we already file feature request for it.

The alternate way for you is to setup your custom post type as hierarchical that will allow you to setup N level parent/child relationship as you need. You should edit your post type and and check mark the checkbox “ hierarchical” under “Options” section.

This will work just like the "page" post type where you can setup parent and child pages.