<?php
function themename_taxonomy_links($node, $vid) {
// if the current node has taxonomy terms, get them
if (count($node->taxonomy)) {
$tags = array();
foreach ($node->taxonomy as $term) {
if ($term->vid == $vid) {
$tags[] = l($term->name, taxonomy_term_path($term));
}
}
if ($tags) {
// get the vocabulary name and name it $name (optional)
// $vocab = taxonomy_vocabulary_load($vid);
// $name = $vocab->name;
// $output .= t("$name") . ": " . implode(' | ', $tags); Read more »