Skip to:
Content
Pages
Categories
Search
Top
Bottom

Display different content in topics based on forum id?


  • AtleGrimseid
    Member

    @atlegrimseid

    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' ) : ?>
    blablabla
    <?php elseif ( $forum_id == '3' ) : ?>
    blablabla1
    <?php else : ?>
    blablabla2
    <?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. :)

    - Thanks! :)

You must be logged in to reply to this topic.