Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to add own forum type?


  • dezzzus
    Participant

    @dezzzus

    I want add new forum type. It is “section” in my case. But i can’t find the file where is defined the other types. Help, please!

Viewing 6 replies - 1 through 6 (of 6 total)

  • dezzzus
    Participant

    @dezzzus

    I mean where in sources the file which define the forums types.


    dezzzus
    Participant

    @dezzzus

    ok, may be you know how to distinguish forum type via WP_Query()?
    $query = new WP_Query('post_type=category'); – not working.

    Hi,
    bbPress works with Categories and Forums for the main structure, could you maybe explain what you plan to obtain ? Because you could easily create a structure of Category>Category>Forums.
    I did not check how easy it is to have implement it, but if you really want this, check how to add a WordPress custom type, that will be your starting point.
    Pascal.


    dezzzus
    Participant

    @dezzzus

    Hi,
    I want forum looking like phpbb, example below. Where I marked the categories and forums must look like.
    I trying to detect categories with this code:

    <?php $q_meta_forums1 = array( 'meta_key' => '_bbp_forum_type', 'meta_value' => 'category'); ?>
    <?php $categories_q = new WP_Query( $q_meta_forums1 ); ?>

    But $categories_q returns nothing. It’s the main problem for now.
    So, then I want in loop-forums.php with code above build categories structure and in ‘while’ cycle make another one which will be show sub-forums of categories.
    Example

    Ah now it’s clear. You can check this topic that will help you out: https://bbpress.org/forums/topic/tittle/
    Pascal.


    dezzzus
    Participant

    @dezzzus

    Ooh, thank you very much!

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Skip to toolbar