Reply To: Pulling from buddypress
Figured it out 😀 here is my code for anyone else wanting to know
if ( !function_exists( 'xprofile_get_field_data' ) ) {
require_once '/bp-xprofile/bp-xprofile-functions.php';
}
// The ID of the field, or the $name of the field.
$field = 'Channel ID';
// The ID of the user.
$user_id = $author_id;
// How should array data be returned? 'comma' if you want a
// comma-separated string; 'array' if you want an array.
$multi_format = 'array';
// NOTICE! Understand what this does before running.
$result = xprofile_get_field_data($field, $user_id, $multi_format);
echo $result;