Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hitting 50 forum limit? What can I do?


  • jameswordpress
    Participant

    @jameswordpress

    Hi there,

    I’ve just installed bbpress 2.3.2 and I’m looking to display 64 forums. Unfortunately there appears to be a 50 forum display limit. How can I override this limit and show all the 64 forums on the front page?

    James

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

  • jameswordpress
    Participant

    @jameswordpress

    I solved this after a quick search of the code. I updated the following file:

    /bbpress/includes/forums/template-tags.php

    updating the line:

    ‘posts_per_page’ => get_option( ‘_bbp_forums_per_page’, 50 ),

    to:

    ‘posts_per_page’ => get_option( ‘_bbp_forums_per_page’, 64 ),


    Robin W
    Moderator

    @robin-w

    tempapte-tags.php was renamed to just template.php

    bbpress/includes/forums/template.php

    However you should be able to use the following filter in your functions file, just amend the 100 to whatever you want
    function bbp_increase-forum-per-page( $args = array() ) {
    $args['posts_per_page'] = get_option( ‘_bbp_forums_per_page’, 100 );
    return $args;
    }
    add_filter( ‘bbp_before_has_forums_parse_args’, ‘bbp_increase-forum-per-page’ );

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

You must be logged in to reply to this topic.