/ Published in: PHP
Use this on a Term ID argument - enter the below as provide default agrument - php Code
remember to change the vid to your vocabulary
remember to change the vid to your vocabulary
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
if (arg(0) != 'node') { return; } $node = node_load(arg(1)); $vid = 2; // this is the vocabulary id to search through... $terms = taxonomy_node_get_terms_by_vocabulary($node, $vid); foreach($terms as $term){ $tids[] = $term->tid; }