I was recently having trouble with displaying BuddyPress's custom profile fields using custom shortcodes but I have found a quick and easy way to do it.

According to the documentation, you would use bp_get_profile_field_data($args); however this seems to only work on BuddyPress pages.

I wanted to be able to build a shortcode which would allow me to print this data anywhere. The solution was to use xprofile_get_field_data();

You can add to your theme's functions.php file:

	$return = xprofile_get_field_data( 'Field Name', bp_loggedin_user_id() );
	return $return;

Now you can utilise this shortcode absolutely anywhere on your WordPress site running BuddyPress.

P.s. I can't wait to leave WordPress development.