Return to Snippet

Revision: 4105
at October 24, 2007 10:38 by JuliaKM


Initial Code
<?php if (count($taxonomy)): ?>
<?php 
$terms = taxonomy_node_get_terms_by_vocabulary($node->nid, 1);
foreach ($terms as $term) {
  $tags[] = l($term->name, taxonomy_term_path($term));
	}
if ($tags){
 print t("Professional Areas") . ": " . implode(' | ', $tags);
} ?>
<br />
<?php
$terms = taxonomy_node_get_terms_by_vocabulary($node->nid, 2);
foreach ($terms as $term) {
  $tagsTwo[] = l($term->name, taxonomy_term_path($term));
	}
	if ($tagsTwo){
 print t("Focus Areas") . ": " . implode(' | ', $tagsTwo);
}?>
<?php endif; ?>

Initial URL


Initial Description


Initial Title
Get Taxonomy Terms for a Vocabulary

Initial Tags
textmate, drupal

Initial Language
HTML