The solutions suggested in the referred tickets consist of custom code, which is out of the scope of the support forum. We may help with simple cases, but for complex cases, you will need to hire a developer if you are not comfortable with programming.
- https://toolset.com/toolset-support-policy/
Instead of a solution that will require custom code, I have suggested, in an earlier reply, another solution that does not require any custom code. The solution consists of an additional custom post type and two relationships. Maybe it is just a misunderstanding or a language barrier. I already explained how to do it, but it seems that you did not understand it fully. So, I am creating an example for you on this test site
Please login with this URL hidden link
Both hospitals and doctors are posts from the same custom post "Listing". I added a custom field "Listing type" to differentiate between doctors and hospitals. And also to use it in conditionals inside the content template:
- hidden link
Because we don't have self joins, we'll use an additional custom post type. I created this custom post type hidden link
Then, I created two relationships. Check them here hidden link hidden link
Then, I created two posts in the assignment Post type and connected the doctors with the hospitals. Check this screenshot hidden link
Then I created a content template and used two views inside of it. Each view is inside a conditional block. One view is meant to return the hospitals, and the other one is meant to return the doctors. This is the content template hidden link
Please note that the views are looking for the assignment posts, each one with the appropriate relationship. Check this hidden link
And we pull the information from the parent post, in the other relationship, instead of the current post. Check this screenshot hidden link
I hope this explains better the workaround that I have suggested in my reply https://toolset.com/forums/topic/self-join-relationship-for-post-types-i-need-a-self-join-relationship-feature/#post-2056689
And check the results here, both doctors are "assigned" to the same hospital:
- Doctor: hidden link
- Doctor: hidden link
- Hospital: hidden link