<?php
function taxonomyTerm ( $vidId ){
$taxonomyArray = taxonomy_get_tree($vidId);
$counts = count(taxonomy_get_tree($vidId))-1;
$output .= '
- ‘;
- ‘.$parentsName = $taxonomyArray[$i]->name.’‘;
$childrenArray = taxonomy_get_children( $parentsTid, $vid = $vidId );
if(!empty($childrenArray)){
$output .= ‘
‘;
$output .= ‘
for($i=0;$idepth;
if($childrenNumb==0){
$parentsTid = $taxonomyArray[$i]->tid;
$output .= ‘
‘;
}
}
}
$output .= ‘
‘;
return $output;
}
print taxonomyTerm (8)
?>