Label Prints multiple times I have a list and I only want to print the label once. Right now, it prints for each variable. 

if (isset($vocabularies));
$vocabularies = taxonomy_get_vocabularies();
if ($vocabularies) {
  foreach($vocabularies as $vocabulary) {
    if ($vocabulary-&gt;vid == 5) {
      $terms = taxonomy_node_get_terms_by_vocabulary($node, $vocabulary-&gt;vid);
      if ($terms) {
        foreach ($terms as $term) {
          print '&lt;div class="vocab"&gt;Event Type: &lt;br/&gt;&lt;p&gt;' .$term-&gt;name;  '&lt;/p&gt;&lt;/div&gt;';
        }
      }
    }
  }
}
Try this:

 $terms = taxonomy_node_get_terms_by_vocabulary($node, $vocabulary-&gt;vid); 
 if ($terms) {
   print 'Event Type: ';
   foreach ($terms as $term) { 
     print $term-&gt;name;       
   }
 }