You have to create a list of all School terms, and then use a Contextual filter to feed Views with information about the City term you're currently viewing (City page), so the School terms results can be reduced to show only the School terms that are related to that particular City.
Build Views that list Terms that reference another Term
- Create a View of type Taxonomy term, you only need the Block Display, and choose only the School terms vocabulary
- Add a Contextual filter from
Taxonomy term
Category named after the reference field you're using on the School term Vocabulary to reference Cities
- Configure it with these options:
When the filter value is NOT available
Provide default value
Taxonomy term ID from URL
Load default filter from term page
When the filter value IS available or a default is provided
Specify validation criteria
Taxonomy term
City
Filter value type
: Term ID
- Save the View (adjust other options if you wish) and place the Block in a region of your theme, limit Visibility to show only on City term pages.
You should now see the list of School terms on city pages that relate to that City.
Test Contextual filter from Views UI
To test the Contextual filter while building Views you can use the Preview with contextual filters:
field.
Enter all
and press the Update preview
button to see all results irrespective of the Contextual filter.
Enter the number of a City term TID to see the School terms related to it. For example if the term newyork
has the TID 16 enter 16
into the Preview field, and you'll see the School term list is reduced to only those which reference newyork.