Hi friends,
i have more vocabularies (3) attached to node and i have difficutl to use Taxonomy image with it.

if i have only a vocabulary there isn't any problem with this function inserted in node.tpl:

	foreach (taxonomy_node_get_terms($node->nid) as $term) {
    if ($image = taxonomy_image_display($term->tid)) {
      print $image;
    } else {?>
	<span class="taxonomy"><?php print $terms?></span>
	<?php
	}
	}
	?>

but when i have more vocabularies the above function doesn't work well...she show all terms attacched at node (with and without image).

pls help me.....
sincerly..
Max

Comments

nancydru’s picture

I have nodes with 5 vocabularies and they all work fine. But I don't mess with my theme stuff.

I add the images in a hook_link_alter function.

nancydru’s picture

"print $terms" is going to show all the term links as it would if Taxo. Image was not installed. That much I know about themes, but I am hardly an expert. I'll have to do some playing around with it.

nancydru’s picture

Assigned: Unassigned » nancydru
Priority: Critical » Normal
nancydru’s picture

Status: Active » Closed (duplicate)