[support] How to get term name for a selected vocabulary of a node?

Marolijo - Pol maresma marolijo at yahoo.es
Thu Apr 3 08:39:45 UTC 2008


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 at drupal.org [mailto:support-bounces at drupal.org]
En nombre de Marolijo - Pol maresma
	Enviado el: dijous, 3 / abril / 2008 09:59
	Para: support at 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 at polnetwork.com <mailto:pol at polnetwork.com>   
	PolNetwork.com / Serveis d'Internet 
	msn: marolijo 




More information about the support mailing list