Skip to:
Content
Pages
Categories
Search
Top
Bottom

Members loop not able to get profile data?


  • dconrad
    Participant

    @dconrad

    I’m having a tough time trying to get member profile fields. I believe any of the following should work, but the only info I can get from these is from bp_member_name(); Any idea what I’m doing wrong here?

    while ( bp_group_members() ) {
    					bp_group_the_member(); 
    					//$role = bp_get_member_profile_data( 'field=Role' );
    					//$role = xprofile_get_field_data('Role', bp_get_member_user_id());
    					$role = bp_get_profile_field_data('user_id=' . bp_get_member_user_id() . '&field=Role');
    					bp_member_name();
    					echo ' role: ' . $role . '<br/>';
    					if ($role == $value){
    						echo 'found user with '. $selection . $value;
    					}
    				}
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Members loop not able to get profile data?’ is closed to new replies.
Skip to toolbar