Skip to:
Content
Pages
Categories
Search
Top
Bottom

How To: Change Number of Entries on the Group and Members Pages?


  • kkradel
    Participant

    @kkradel

    The Groups and Members pages only show 20 entries and then you have to click to the next page. My pages can handle a larger number – where is that code located?

    Also, maybe there should be a drop down with various numbers (25, 50, 75, 100) on those pages so that people can choose how many entries are shown?

    Example: https://artist-at-large.com/groups/

    You can see that I have quite a bit of white space that could be filled.

    Thanks!

Viewing 1 replies (of 1 total)

  • Prashant Singh
    Participant

    @prashantvatsh

    Hi,

    Please try this code.

    function ps_groups_per_page( $loop ) {
    if ( bp_is_groups_directory() ) {
    $loop['per_page'] = '40';
    }
    return $loop;
    }
    add_filter( 'bp_after_has_groups_parse_args', 'ps_groups_per_page');

    You can paste this code in your child theme’s functions.php file or just create bp-custom.php(https://codex.buddypress.org/themes/bp-custom-php/) and paste it there.

    Thanks

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