/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php if ($terms): ?> <?php /* sort taxonomy links by vocabulary 27 */ $terms27 = taxonomy_node_get_terms_by_vocabulary($node->nid, 27); if ($terms27) { print '<div class="terms">Forums: '; foreach ($terms27 as $key => $term27) { $lterm27 = l($term27->name, 'taxonomy/term/'.$term27->tid); print $lterm27.' - '; } print '</div>'; } ?> <?php endif; ?>
URL: http://urlgreyhot.com/personal/weblog/drupal_tip_5_displaying_terms_by_facet_vocabulary