I am using Drupal 7, and I created a two-level vocabulary used it as a field for term reference. I created it using Simple hierarchical select module.
edit : I have my node tagged with both the parent(State field), and child (City field) term.
Location
- State1
- City A
- City B
- State2
- City C
- City D
Then I have a page View, where I use the Location field as an exposed filter, so that visitors can sort the content.
I have no problem in getting the results when the user selects for example:
- Illinois
- Chicago
Then all content that has the term Illinois
and Chicago
will be displayed.
The problem comes when I only want to sort using the parent term, so if you sort for example using only
- Illinois
It should display every node that has the term Illinois
. But my Views returned nothing, when selecting only the parent term and applying that exposed filter.
I have checked that when you look view the taxonomy of Illinois
everything displays properly, but not on the exposed filter in Views.
How will I proceed on displaying the nodes in my Views using exposed filters?