rendered paste body// Display only Best For vocab termsfunction mytheme_print_terms($nid) { $replacements['17'] = array( 'src' => '/sites/dev.topnotchthemes.com/themes/topnotchthemes2/images/bestfor-media-on.gif', 'alt' => 'Best for Media', 'id' => 'media', 'width' => '', 'height' => '', 'class' => 'taxonomy_image', ); $terms = taxonomy_node_get_terms_by_vocabulary($nid, 5); if ($terms) { $links = array(); foreach ($terms as $term) { if ( array_key_exists($term->tid, $replacements) ) { $links[] = "<img src=\"$replacements[$term->tid]['src']\">"; } else { $links[] = l($term->name, taxonomy_term_path($term), array('class' => 'taxonomy_term_'.$term->tid,'rel' => 'tag', 'title' => strip_tags($term->description))); } } $output .= implode(', ', $links); } return $output;}