Skip to:
Content
Pages
Categories
Search
Top
Bottom

Use different templates for different forums

  • I worked with wordpress for a while, but I’m really new to BBpress. I can’t find detail documents for BBpress like wordpress does.

    If I want to use different templates for different categories in wordpress, I can use the following script.

    <?php

    $post = $wp_query->post;

    if ( in_category(‘1) ) {

    include(TEMPLATEPATH . ‘/single-1.php’);

    }

    elseif ( in_category(‘2′) ) {

    include(TEMPLATEPATH . ‘/single-2.php’);

    }

    else {

    include(TEMPLATEPATH . ‘/single-3.php’);

    }

    ?>

    But I don’t know how to make it in BBpress, could anyone help me out? Thanks a lot!

You must be logged in to reply to this topic.