Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Insert Code Next to BP Profile Avatar

@danbp

Participant

hi @ricardo_s

file reference is bp-templates/bp-legacy/buddypress/members/single/members-header.php
Codex infos about loops

Put the function in your-theme/functions.php or in bp-custom.php.

Example

function my_function_name () {	
// your stuff here
if ( $data = bp_get_profile_field_data( 'field=your_field_name ' ) ) : 
?>
<div class="what_you_want">
<?php
echo xprofile_get_field_data( 'your_field_name', bp_displayed_user_id() );
?>
</div>
<?php
endif;

}
add_filter( 'bp_before_member_header_meta', 'my_function_name' );
Skip to toolbar