Skip to:
Content
Pages
Categories
Search
Top
Bottom

Change number of members and groups on archive pages

Viewing 4 replies - 1 through 4 (of 4 total)
  • Avatar of Hugo
    Hugo
    Moderator

    @hnla

    A very simple solution and you don’t really want to be running a plugin, you modify the loop for those pages passing a new per_page quantity through, which I suspect one of those post links is showing? If you look in the codex you will see examples of the methods of passing args to modify the loops.

    On the members loop you would do:
    ( bp_has_members( bp_ajax_querystring( ‘members’ ) . ‘&per_page=15′ ) )

    http://codex.buddypress.org/type/loop/

    Avatar of koreancandy
    koreancandy
    Participant

    @koreancandy

    Thank you :)

    When I add this code it makes the list of members disappear, the page is blank and the page’s sidebar disappears.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    Then something not being done correctly or you have custom code running of some description that’s interfering.

    Avatar of koreancandy
    koreancandy
    Participant

    @koreancandy

    Hmm I’m not sure. I have copied the code exactly how you suggested, so I guess it’s something to do with the code of the theme

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

You must be logged in to reply to this topic.