Friday, October 7, 2011

Get Child taxonomy items in Drupal

 $parent_tid = 1002;
 $childs = taxonomy_get_children($parent_tid);
 foreach ($childs as $ksubspec) {   
     $childs_lists .= $ksubspec->name." | ";
 }
echo "Child Taxonomy list : ".$childs_lists;

No comments:

Post a Comment

Followers