By robbdavis on
Hi,
I've found the PHP code snippet to display tags by category:
drupal_set_html_head('<style type="text/css">@import url('.drupal_get_path('module','tagadelic').'/tagadelic.css);</style>');
$vocs[] = 1; // id of the vocabulary of which you want to display a tag cloud
$output = theme('tagadelic_weighted',tagadelic_get_weighted_tags($vocs));
print $output;
However, some of my vocabularies are used by different content types. I would like to display the tags by content type.
To be more specific, I have a content type called 'Canada' for all posts related to Canada and I have a content type called 'America' for all posts related to America. I am using a vocabulary called 'products' for each content type. How do I get only the 'product' tags (ie. "Maple Syrup", "Hockey Sticks") only from the Canada type to display.
Thanks,