For an author’s profile link, use
1 |
bp_core_get_user_domain( $user_id ) |
to get the URL, and
1 |
bp_core_get_userlink( $user_id ) |
to get an HTML link element, including display name.
For the xprofile data, use
1 |
xprofile_get_field_data( $field, $user_id ) |
$field
can be either the name of the field (like ‘Biography’) or the numerical field id.