/**
* Prints an unordered list of the all the terms in a vocabulary
*/
$vid = 2;
$terms = taxonomy_get_tree($vid, $parent = 0, $depth = -1, $max_depth = NULL);
if ($terms) {
print '<ul>';
foreach ($terms as $term) {
print '<li>'.l($term->name, 'taxonomy/term/'.$term->tid).'</li>';
}
print '</ul>';
}
Comments
Taxonomy List
You may use http://drupal.org/project/taxonomy_list
Php code to print all the terms of a vocabulary in a node