Skip to content

Instantly share code, notes, and snippets.

@paulgibbs
Created Aug 16, 2016
Embed
What would you like to do?
<?php
// put this in a function otherwise i will get upset.
$data = xprofile_get_field_data( 'Location', bp_displayed_user_id(), 'comma' );
if ( $data ) {
echo "Lives in {$data}";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment