BuddyDev

Search

[Resolved] How to show more than 50 forums in BBPress?

Tagged: 

  • Participant
    Level: Enlightened
    Posts: 88
    Torben Heikel Vinther on #23509

    Hi

    It seems that there is a limit on 50 forums that can be shoed in the forum index page. How do I show all of my 89 forums?

    Thanks
    Torben

  • Keymaster
    (BuddyDev Team)
    Posts: 24577
    Brajesh Singh on #23517

    Hi Torben,
    Thank you for asking.

    That is the default limit. You can change it like this

    
    /**
     * Change default number of forums.
     */
    add_filter( 'pre_option__bbp_forums_per_page', function ( $val ) {
    	return 100;// change it to the number.
    } );
    
    

    Please put this in your functions.php or bp-custom.php and that should do it.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 88
    Torben Heikel Vinther on #23524

    Hi Brajesh

    Super. Thank you very much. It works 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 24577
    Brajesh Singh on #23525

    Hi Torben,
    Thank you for confirming. I am glad it worked 🙂

    Regards
    Brajesh

The topic ‘ [Resolved] How to show more than 50 forums in BBPress?’ is closed to new replies.

This topic is: resolved