Skip to:
Content
Pages
Categories
Search
Top
Bottom

Change the number of forums per page


  • Ash Whitney
    Participant

    @ashwhitney

    Hello. I’d be grateful for some advice please.

    Is it possible to change the number of forums per ‘page’ from the default 50?

    I appreciate the argument for better categorisation, but the situation I have is a parent category relating to prison establishments and within that category are 104 separate forums – one for each prison establishment, so there’s no scope for categorising any differently.

    As my site stands, when visiting the prison establishments page, only the first 50 forums are listed, with no pagination etc. linking to the hidden forums.

    Thanks for your time.

    Ash

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

  • Robin W
    Moderator

    @robin-w

    add this to your functions file

    add_filter ('bbp_before_has_forums_parse_args', 'rew_number_of_forums') ;
    
    function rew_number_of_forums ($args) {
    	$args['posts_per_page'] = 50 ;
    return $args ;
    }

    I’ll add it to my style pack plugin shortly if you don’t know how to do that


    Robin W
    Moderator

    @robin-w

    now available in my style pack plugin

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>Forum Display and set in item 11


    Ash Whitney
    Participant

    @ashwhitney

    Hi Robin

    I was using your BBP Style Pack plugin already as it’s a very useful plugin. I’ve just updated to the lastest version and set the number of forums in the new feature under Forum Display – which works great.

    Thank you kindly for your time and for the very useful update to the plugin.

    Regards

    Ash


    Robin W
    Moderator

    @robin-w

    glad to have helped 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar