Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By mor on
How to display taxonomy term of a current node.
I have the vocabulary "Country" with his terms and I want to display the country term of the current node.
Im search about but only found list of terms, I will like display only one term.
thanks in advance
Comments
Look in node.tpl.php of
Look in node.tpl.php of whatever theme you're using. There is a template variable called $terms, which is the default manner in which taxonomy terms are displayed. If you only want the first term, you may need to only parse the first one.