Tell us what you are trying to do?
Hi,
I have post type called tenant that is parent of two post types (contacts and rentals). I want to display all the contacts of the tenant for current rental in rental content template.
Hello. Thank you for contacting the Toolset support.
So, You have post types:
- tenant
-- contacts
-- rentals
I want to display all the contacts of the tenant for current rental in rental content template.
==>
so do you mean that you want to display the contacts on single rental page where we need to find the tenant belongs to rentals and then based on that related tenant we need to find the related contacts belongs to those tenant?
Where:
- create a view X - that query the tenant and add the post relationship filter from the query filter section to filter by current post.
- create another view Y - that query the contact and add post-relationship filter from query filter section to filter this by current post in loop and format the loop editor section as required.
- Add the view Y to X view's loop editor section.