Created
August 8, 2015 15:31
-
-
Save iledcom/1bd6147c0e16fac4c91d to your computer and use it in GitHub Desktop.
Drupal7 How to get taxonomy term name from tid?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$term = taxonomy_term_load($tid); | |
$tids = array(1, 2, 3); | |
$terms = taxonomy_term_load_multiple($tids); | |
foreach ($terms as $term) { | |
$name = $term->name; | |
print $name; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment