Skip to:
Content
Pages
Categories
Search
Top
Bottom

Members loop not able to get profile data?

  • Avatar of dconrad
    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)
  • Avatar of dconrad
    dconrad
    Participant

    @dconrad

    Using BP 1.7.2 and WP 3.5.1.

    No modified core files. This is in my plugin.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.