Skip to:
Content
Pages
Categories
Search
Top
Bottom

[bbp-forum-index] display only 50 forums !


  • poco06
    Participant

    @poco06

    Hello,

    I’m using bbpress with the DIVI theme and got an issue : the [bbp-forum-index] shortcode returns only 50 forums end no more !
    I have also tried with the Twenty Twenty theme and got the same issue.

    Any idea how I could display more than 50 forums with this shortcode?

    Wordpress 5.3.2 and bbpress 2.6.4
    Regards
    Pat

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

  • webcreations907
    Participant

    @webcreations907

    The topics & replies within forums you can change in your WordPress admin area at Settings > Forums below “Topics and Replies Per Page”.

    If you want to change the displayed forum amount(shortcode you mentioned), try adding the below code to your functions.php file of your WordPress theme.

    
    if(!function_exists('poco06_bbpress_change_forum_count_display')){
    	function poco06_bbpress_change_forum_count_display( $args ){
    		if( is_array( $args ) && array_key_exists( 'post_type', $args ) && $args['post_type'] == 'forum'){
    			$args['posts_per_page'] = 100; //Change to number of displayed you want
    		}
    		return $args;
    	}
    
    	add_filter( 'bbp_after_has_forums_parse_args', 'poco06_bbpress_change_forum_count_display' ,10 );
    }
    

    That should increase it to 100, change as needed. There might be a plugin for that as well that others may be able to point you to.

    🙂


    poco06
    Participant

    @poco06

    Hi,

    Thanks for the info.
    That’s perfect for me.
    Regards
    Pat

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