Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp_has_members Show all members registered


  • purecreativeuk
    Participant

    @purecreativeuk

    BP version 1.6.5

    I am trying to complete a members loop with all members registered on the site.

    I’ve tried various combinations of bp_has_members but the latest is:

    ` if ( bp_has_members(‘type=alphabetical&action=alphabetical&per_page=100&max=100’ ) ) : `

    Every time the bp_members loop cuts off, i.e. is shorter than the amount of registered members.

    What is the correct query to list all members?

    I have even tried getting a list of all user IDs using get_users() and having these as an include= argument, but it still cuts of the list of results.

    Is there anything that needs to be cleared/reset like when you have multiple loops in WordPress templates?

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

  • AlEstrada
    Participant

    @alestrada

    I’ve been dealing with this issue for months. It would be nice to have a filter type to display all.


    metadebt
    Participant

    @metadebt

    I don’t know about all, but you can use this to display at least the number of users you want to display
    <?php if ( bp_has_members(bp_ajax_querystring( ‘members’).’&type=random’.’&per_page=100′) ) : ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘bp_has_members Show all members registered’ is closed to new replies.
Skip to toolbar