bp_members() loop is only pulling one member.
-
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)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘bp_members() loop is only pulling one member.’ is closed to new replies.