Skip to:
Content
Pages
Categories
Search
Top
Bottom

forums list


  • tme2
    Member

    @tme2

    How can I have the forums list from the main page (bbpress plugin). Example, right now it is the catergory, then forums:

    category

    - forum, forum, forum , forum, etc.

    category

    - forum, forum, etc

    I want:

    category

    - forum

    - forum

    - forum

    category

    - forum

    - etc.

    Thanks in advance

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

  • tme2
    Member

    @tme2

    Anyone??


    MartinM60
    Member

    @martinm60

    I had this problem, and resolved it by editing the bbp-forum-template.php file.

    You need the bbp_list_forums function at about line 637..

    Find:

    // Defaults and arguments

    $defaults = array (

    ‘before’ => ‘<ul class=”bbp-forums”>’,

    ‘after’ => ”,

    ‘link_before’ => ‘<li class=”bbp-forum”>’,

    ‘link_after’ => ”,

    ‘count_before’ => ‘ (‘,

    ‘count_after’ => ‘)’,

    ‘count_sep’ => ‘, ‘,

    ‘separator’ => ‘,’,

    ‘forum_id’ => ”,

    ‘show_topic_count’ => true,

    ‘show_reply_count’ => true,

    );

    If you edit the ‘seperator line, replacing ‘,’ with '<br />'

    Then you will list your forums as required.


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    Do not modify the core files.

    If you don’t like the way it looks, you can change it by creating a custom theme and passing different parameters to the bbp_list_forums() function instead.

    Why isn’t this working?

    <?php bbp_list_forums('forum_id' => '4'); ?>

    and this.

    <?php bbp_list_forums(array('forum_id' => '4')); ?>

    If i’m correct this should only load forum ID 4 correct?

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

You must be logged in to reply to this topic.