I sucessfully print the whole taxonomy tree through this code `$voc = taxonomy_vocabulary_machine_name_load('product_sub_categories'); $tree = taxonomy_get_tree($voc->vid,0,NULL,TRUE); foreach ($tree as $key => $term){ print $term->name."</br>"; }` , now I want to separatly print parent and chile in order to custon theme them, because I have already a markup in which parent has separate `<p class="parent_class">`Parent terms</p> and children has separate `<ul class="child_class">Child terms</ul>`. How should I do this, can anyone there to help me?