Last active
December 16, 2015 18:38
-
-
Save espellcaste/5478731 to your computer and use it in GitHub Desktop.
Creating extra profile info in the members profile header with this function. Change field= to the field you want to display.
This file contains 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
function extra_profile_fields_output(){ | |
global $bp; | |
$field_text = bp_get_profile_field_data( 'field=Country' ) ); | |
echo '<span class="profile-fields">' .$field_text. '</span>'; | |
} | |
add_action( 'bp_profile_header_meta', 'extra_profile_fields_output' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment