I have been reading on drupal.org for about 4 hours now, trying to figure out how to get a topic's forum name or id, and I still haven't found any solution. :'(
I just want to add a class to a div so I can theme the site based on which forum a topic is in.
So, conceptually something like this:
<div class="<?php print $terms ?>">
<div class="<?php $tid = $node->taxonomy_forums[$langcode]['tid']; print $tid; ?>">
Or something - I know that neither of those work.
I have also tried many of the solutions here:
I could really use some help here; I am really struggling to get this to work.