Add Buddypress profile field to front end

A created a profile field 'about me' so members can write a bit about thenseves. Can this be displayed beside/beneath member's profile photo?

  • Nithin

    Hello skc,

    Seems like this is the same query asked in the chat, which got resolved via chat a moment ago. I'm pasting the code given in chat for your reference:

    <?php
    add_action( 'bp_profile_header_meta', 'display_user_profile' );
    
    function display_user_profile() {
    //This is where the code to display the user data will go.
    
    echo 'About me: ';
    $args = array(
    'field' => 54, // Field name or ID.
    );
    bp_profile_field_data( $args );
    }

    The code is added as a mu-plugins in your system, by creating a new file called bp-wpmu.php. If you have any further query, feel free to open a new chat with us, have a great year ahead. :slight_smile:

    Best Regards,
    Nithin

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.