Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Alternative Usage of a Profile Field


draganbabic
Member

@draganbabic

Thanks for the help r-a-y, I found this solution:

[IN BP_CUSTOM.PHP]:

function custom_xprofile( $field ) {

echo bp_custom_get_member_list_xprofile_data( $field );

}

function bp_custom_get_member_list_xprofile_data( $field ) {

global $site_members_template;

return xprofile_get_field_data( $field, $site_members_template->member->id );

}

[IN CHILD THEME FILE]:

<?php custom_xprofile('Header Image') ?>

Skip to toolbar