Ever managed to pull a 'term id' using Drupal Views, yet really need to display the 'term name'?
Well, thanks to Vicky on the Stack Overflow site, here's the solution...
Place this function in template file...
function getTermsName($taxnomyid){ $terms = taxonomy_get_term($taxnomyid); $termsname = $terms->name; return $termsname; }
...and use to print term name wherever you want $taxonomyid is your term id.
If using it in a 'view' template where $output is normally displayed, you can use it without the function like:
<?php $terms = taxonomy_get_term($output); $termsname = $terms->name; ?> <?php print $termsname; ?>
Main Category