buddypress member directory add xprofile field
function my_directory() {
if ( bp_is_active( 'xprofile' ) )
if ( $memberfax = xprofile_get_field_data( 'Fax', bp_get_member_user_id() ) ) :
echo '<br/><div class="Fax">';
echo $memberfax;
echo '</div>';
endif;
}
add_filter ( 'bp_directory_members_item', 'my_directory' );