Assume we have the following taxonomy hierarchy.
- Meat
- Beef
- Chicken
- Pork
- Seafood
- Crab
- Fish
- Vegetable
- Cabbage
- Potato
- Tomato
- Drink
- Coke
- Milk
- Lemon Tea
Create a taxonomy view as follow

In the above view, what you need is a parent term relationship and set this in a term filter. if this term filter is empty, that means term without a parent term would be selected(Parent term only). On the other hand, set the term filter to not empty in order to get all children terms(Children term only).
Done =)

I have a view similar to this and it gives me all of the child terms that have a parent, regardless of what that parent is.. but I do not want *all* child terms – I just want those of a given parent.. I’ve tried setting the term id of the parent in the contextual filter (argument) but it still gives me all child nodes…
Any suggestions how to do this (in D7)?
LikeLike
I think you should not use a contextual filter. See how i configure the view in D7 as follow.

does it help?
LikeLike
I would like to achieve the same functionality with Drupal 7, any ideas???
LikeLike
Any ideas how to achive the same functionality in Drupal 7?? Thanx!
LikeLike
Please refer to this comment.
LikeLike
Thank you. @ykyuen’s example worked great.
LikeLike
You are welcome~ =D
LikeLike
Hi can you please guide how to have (PARENT) | (CHILD) |(GRANDCHILD) exposed filters that are dependent on selection of parent followed by child and the grandchild, please
LikeLike
The following 2 modules may help
LikeLike