Display Nodes from Taxonomy Category Term and Parent Terms
There is a function called taxonomy_get_tree() that you can use to fetch all the term IDs under a given parent ID. You can then call taxonomy_select_nodes() with an array of term IDs, which will return all nids that match that collection of tids.