the code only shows 50
put this in your functions file (untested, but should work)
add_filter ('bbp_before_has_forums_parse_arguments', 'rew_show_all' ) :
function rew_show_all ($args) {
$args['posts_per_page'] = -1 ;
return $args ;
}
Thank you Robin, didn’t work unfortunately. First got the error:
Parse error: syntax error, unexpected ‘:’ in C:\xampp\htdocs\sitename\wp-content\themes\make-child-theme\functions.php on line 196
Changed : to ; and the error went away but it didn’t change the subforums list.
sorry – I was half awake this morning
try
add_filter ('bbp_before_has_forums_parse_args', 'rew_show_all' ) ;
function rew_show_all ($args) {
$args['posts_per_page'] = -1 ;
return $args ;
}
Great, thank you 🙂 That seems to be working when you view the parent forum list (site.com/forums/forum/parent-forum/), but still not when viewing the main forum index.
Guessing perhaps ‘bbp_before_has_forums_parse_args’ is not used on that list, something else, but I have no idea what (google-fu not getting me anywhere on this one!)
Just thinking, I suppose I don’t actually need all 2000 listed on the forum index! (although would be handy to know how). But will see if I can hide that specific subforum list when viewing the index.
To update again , I think 2000+ subforums is maybe just too much (for a standard server set up). I keep getting “Maximum execution time of 30 seconds exceeded” errors, so I guess…back to the drawing board!
Thanks anyway for your help Robin.
ok, thanks for the updates
For sure there will be issues for sure with bbPress and ~2000 forums, it wasn’t designed for this many forums, it’s also more often than not not a good idea to have this many forums.
Categorising the forums into a more hierarchical layout is usually far more friendly for admins, mods, and users. For example break down the UK to England, Scotland, Wales, and Northern Ireland, then further break them down, under Scotland you’d have Aberdeenshire, Dumfries and Galloway and so on….