I am trying to create and enforce such a relationship between custom_post_types.
Question:
How to ‘link’ the post_types in a manner that allows finding parent/child of any post_type?
Examples:
Querying for parent of ‘barter’ should give classified_post_type
.
Querying for leaf nodes of user_post_type gives all the leaf nodes. etc
I understand this cannot be achieved just by creating custom_post_types. But is there any way like taxonomy/metafield to link different custom post types together ? Actually I am not bent on using customn_post_types. Just want the above mentioned behaviour, if possible.
ty