DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Drupal Taxonomy Terms From CCK Taxonomy

07.05.2011
| 1910 views |
  • submit to reddit
        
<?php 
	$i = 0;
	$limit = count($field_field_of_interest);
	while ($i <= ($limit-1)) {
 		$tags[] = l($field_field_of_interest[$i]['view'], 	'taxonomy/term/'. $field_field_of_interest[$i]['tid']);
		$i++;
	}
if ($field_field_of_interest){
 print t("Fields of Interest") . ": " . implode(' | ', $tags);
	}
?>

<br />

<?php 
	$i = 0;
	$limit = count($field_professional_area);
	while ($i <= ($limit-1)) {
 		$tagsTwo[] = l($field_professional_area[$i]['view'], 	'taxonomy/term/'. $field_professional_area[$i]['tid']);
		$i++;
	}
if ($field_professional_area){
 print t("Professional Area") . ": " . implode(' | ', $tagsTwo);
	}
?>