Display different content in topics based on forum id?
Hi and hello.!
In my forum.php I use the following lines to show different content based on the forum-id:
<?php if ( $forum_id == '2' ) : ?>
<?php elseif ( $forum_id == '3' ) : ?>
<?php else : ?>
<?php endif; ?>
Now, I need to show different content inside the topics (topic.php) based on witch forum the topic is posted in. For example if the topic is posed in forum_id 2, I would like to show “this post was posted in forum_id 2…”
Any idea what I might use to make this come thru? I am running bbPress 1.1.
- You must be logged in to reply to this topic.