Skip to content

Instantly share code, notes, and snippets.

@espellcaste
Last active December 16, 2015 18:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save espellcaste/5478731 to your computer and use it in GitHub Desktop.
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.
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