Skip to:
Content
Pages
Categories
Search
Top
Bottom

Display all Members on Member Page


  • stefanievalentic
    Participant

    @stefanievalentic

    I would like to get rid of the “order by” function and just list all of my members on one page – essentially get rid of both the filters and the pagination. What’s the best way to do that?

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

  • shanebp
    Moderator

    @shanebp

    Create template overloads of these two pages:
    buddypress\bp-templates\bp-legacy\buddypress\members\members-loop.php
    buddypress\bp-templates\bp-legacy\buddypress\members\index.php

    In the first, change
    if ( bp_has_members( bp_ajax_querystring( 'members' ) ) ) :
    to
    if ( bp_has_members( bp_ajax_querystring( 'members' ) '&per_page=1000') ) :

    In the second, delete the div that starts with:
    <div class="item-list-tabs" id="subnav" role="navigation">


    stefanievalentic
    Participant

    @stefanievalentic

    The ‘&per_page=1000’ is throwing an error:

    Parse error: syntax error, unexpected ”&per_page=1000” (T_CONSTANT_ENCAPSED_STRING)

    Can I get the member alphabetized instead of by activity?


    danbp
    Participant

    @danbp

    Hi @stefanievalentic,

    additionnal informations about activity and member loop can be found here:

    Activity Loop

    Members Loop


    shanebp
    Moderator

    @shanebp

    @stefanievalentic
    Sorry, try this version:
    if( bp_has_members( bp_ajax_querystring( 'members' ) . '&per_page=1000') ) :

    For alphabetical, try:
    if( bp_has_members( bp_ajax_querystring( 'members' ) . '&type=alphabetical&per_page=1000') ) :

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Display all Members on Member Page’ is closed to new replies.
Skip to toolbar