• Skip to primary navigation
  • Skip to main content
Team Momentum

Team Momentum

Low-Cost Websites and Marketing Solutions

  • Home
  • About
  • Websites
  • SEO
  • Blog
  • Clients
    • Downloads
    • Control Panel Login
  • Show Search
Hide Search
You are here: Home / Archives for Genesis

Genesis

Display BuddyPress Profile Fields Anywhere

Administrator · August 15, 2011 ·

If you want to echo BuddyPress’s extended profile fields outside the loop, you need to add the $bp->loggedin_user->id parameter.

Here’s the code using a Genesis hook (substitute a hook for your theme):

function show_extra_profile_fields() {
global $bp;
$myfield = xprofile_get_field_data( 'Field Name', $bp->loggedin_user->id );
echo $myfield;
}
add_action( 'genesis_before_loop', 'show_extra_profile_fields' );

Add html tags to the echo statement and you’re in business.

Blessings.

Team Momentum

Copyright © 2025 · Monochrome Pro on Genesis Framework · WordPress · Log in