I have several custom post types, but for this question I will use just two, houses and condominiums.
A condominium has a lot of houses.
I already created these two custom post types and it's working. When I access archive-houses (/houses), it brings all the houses. If I access archive-condominiums (condominiums), it brings all of it as well.
If I access single-condominiums (/condominiums/some-cond) and single-houses (/houses/some-house/), it shows the information for each item selected. Working as well!
Now, I would like to bring all the houses by condominiums, when I access something like this:
/condominiums/{condominium}/{houses}
How to create this page with this hierarchy inside this custom post type?
Thanks!