Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to display description under the name on the profile page


r-a-y
Keymaster

@r-a-y

Read this to grab the data of a xprofile field:

https://buddypress.org/forums/topic/editing-the-core-elements-of-buddy-press#post-41651

You have two ways to add the xprofile field:

1) Hook into the profile action to display custom data (preferred)

In your child theme’s functions.php, add the following:

function my_bp_xprofile_about_me() {
bp_profile_field_data('field=About Me');
}
add_action('bp_before_member_header_meta','my_bp_xprofile_about_me');

This method is preferred because you won’t have to worry about theme updates.

2) Copy /bp-themes/bp-default/members/single/member-header.php to a child theme and make your changes there

Manually add the bp_profile_field_data(‘field=About Me’) line to the file.

Skip to toolbar