Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Display profile fields on members page

@shanebp

Moderator

You don’t need to touch the members-loop template file.
Try putting this in your theme/functions.php or in plugins/bp-custom.php

function add_age_to_members_loop() {
    $field_content = bp_get_member_profile_data( 'field=Age' );
    if( $field_content != false )
      echo "Age: " . $field_content;
}
add_action( 'bp_directory_members_item', 'add_age_to_members_loop' );
Skip to toolbar