Created
August 16, 2016 09:12
-
-
Save paulgibbs/8c038f59317ef49612db889056e20025 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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