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 ),
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’ );
I know this is a tad bit old however I happened to stumble on this post while I was looking for a way to increase both the page to 100 posts and the parent page to show all 100 posts as well. The solution above adding to the functions page did not work for me even upon changing it to the proper code.
I did however find the same solution as jameswordpress did but there are multiple lines.
to edit so that both the parent forum and the selected forum page to show more than 50 forums.
To do this edit template.php located in:
/bbpress/includes/forums/template.php
Change line 135:
'posts_per_page' => get_option( '_bbp_forums_per_page', 50 ),
to:
'posts_per_page' => get_option( '_bbp_forums_per_page', 100 ),
———-
Also changing line 708 should effect the parent page (at least it did for myself):
'posts_per_page' => get_option( '_bbp_forums_per_page', 50 ),
to:
'posts_per_page' => get_option( '_bbp_forums_per_page', 100 ),
You can change the value of 50 to whatever you desire.
Well, the above function also worked but needed some modification.
Here is the code snippet that actually worked:
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’ );
Hello i have the same problem,
how can i solve this problem?
Idk where to paste the fix code.
Thank you for your help
didnt work to me sadly, i have the still the same problem 🙁