Skip to:
Content
Pages
Categories
Search
Top
Bottom

Only one result for certain types in members loop


  • ch1n3s3b0y
    Participant

    @ch1n3s3b0y

    Ok, so I have successfully created a custom members loop within a normal WordPress page. A weird issue is, if I set the type to something like ‘popular’ or ‘newest’ it might only return one result, when I had set the max to two. There are eleven test members so it there must be at least 2 newest members and 2 most popular.

    Does anyone have any idea what is going wrong here?

    <?php if ( bp_has_members(bp_ajax_querystring( 'members' ).'&include=1,2,3,4,5,6,7,8,9,10&max=2&type=newest' ) ) : ?>

Viewing 1 replies (of 1 total)

  • danbp
    Moderator

    @danbp

    It’s working for me.

    Do the user_id exist ? If you use bp-default-date plugin, users have a 2 digit id.
    Do you added the if has_members to your child-theme members-loop file ?

    Accepted sort order type are ‘active’, ‘random’, ‘newest’, ‘popular’.

    If the included users never logged in they can’t be active or popular. And are considered as newest only if they match to include and max.

    Try with ‘random’ and add user 11 and see if it change something.

Viewing 1 replies (of 1 total)
  • The topic ‘Only one result for certain types in members loop’ is closed to new replies.
Skip to toolbar