Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp_members() loop is only pulling one member.


  • CaldwellYSR
    Participant

    @caldwellysr

    I’m learning BuddyPress for the first time and I’ve been stumbling along trying to get this figured out to no avail. I have two WP_Users set up. Since I’m using the 2.2 beta I have defined 3 member roles (User, Bar, Admin). I have gone into both members profile’s and made sure everything on xProfile is filled out so from everything I can see they’re both WP users and BP members. However when I run the members loop I’m only seeing the first one show up.

    This is the loop I have:

    <?php 
    	if(bp_has_members()) { 
    		while(bp_members()) { bp_the_member();
    ?>
    			<a href="<?php bp_member_permalink(); ?>"><?php echo bp_get_user_firstname(); ?></a><br />
    <?php			
    		}
    	} else {
    ?>
    		<h1>YOU HAVE NO MEMBERS</h1>
    <?php		
    	}
    ?>
Viewing 2 replies - 1 through 2 (of 2 total)

  • r-a-y
    Keymaster

    @r-a-y

    In order for members to show up in the member loop, they must have logged in at least once.

    Can you verify that the user has logged in? If so, does that user show up in the loop?


    CaldwellYSR
    Participant

    @caldwellysr

    That was absurdly simple. I assumed I could create a bunch of test users and they would show up. Didn’t realize I had to log in with each one as well.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘bp_members() loop is only pulling one member.’ is closed to new replies.
Skip to toolbar