Hello, I'm lookin on taxonomy_get_term and other functions but can't find the solution.
I need to get the term name for a certain vocabulary on a node template.
Thank's!
Pol Maresma / pol@polnetwork.com PolNetwork.com / Serveis d'Internet msn: marolijo
I found this and now I can output a link to the term, If I only want to display the term without the link?
Thank's!
$terms27 = taxonomy_node_get_terms_by_vocabulary($node->nid, 3); if ($terms27) { foreach ($terms27 as $key => $term27) { $lterm27 = l($term27->name, 'taxonomy/term/'.$term27->tid); print $lterm27; } }
________________________________
De: support-bounces@drupal.org [mailto:support-bounces@drupal.org] En nombre de Marolijo - Pol maresma Enviado el: dijous, 3 / abril / 2008 09:59 Para: support@drupal.org Asunto: [support] How to get term name for a selected vocabulary of a node?
Hello, I'm lookin on taxonomy_get_term and other functions but can't find the solution.
I need to get the term name for a certain vocabulary on a node template.
Thank's!
Pol Maresma / pol@polnetwork.com mailto:pol@polnetwork.com PolNetwork.com / Serveis d'Internet msn: marolijo