BuddyDev

Search

Profile tabs and profile fields

  • Participant
    Level: Initiated
    Posts: 8
    Chris Hall on #46303

    Is it possible to display a buddyboss user profile field in a different profile tab?

    For example, I have a profile field named bio that is a multiline text field.

    Would it be possible to display this field on a new tab named bio?

  • Keymaster
    (BuddyDev Team)
    Posts: 24599
    Brajesh Singh on #46306

    Hi Chris,
    Thank you for the question.

    Yes, it is possible. You will need a plugin that can show the field as shortcode. we have a plugin for it.

    You can install this plugin and then use the following shortcode in the tab content

    
    [bpsc-profile-data context='displayed' field='field name or id' ]
    
    

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 8
    Chris Hall on #46512

    Thank you. This is working well, except it is removing line breaks.

    Is it possible to not remove line breaks (or other formatting)?

    Here are a couple of screenshots to explain.

    https://imgur.com/0fb4fR8

    https://imgur.com/W6JvDTv

  • Keymaster
    (BuddyDev Team)
    Posts: 24599
    Brajesh Singh on #46523

    Hi Chris,
    Thank you. seems like we are missing an autop somewhere. I will be checking and getting back to you within next 24 hours.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24599
    Brajesh Singh on #46539

    Hi Chris,
    Thank you for the patience.

    I had a look. The issue lies with the shortcode plugin. By default, BuddyPress applies the filter ‘bp_get_the_profile_field_value’ on values and there are various formatting callbacks attached to this hook. We are using the raw value.

    If we need to have the same format as the default rendering on profile loop, we need to update shortcode. I will push an update to the plugin by Monday and post back.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24599
    Brajesh Singh on #46562

    Hi Chris,
    Thank you for the patience.

    Please update the shortcode plugin to current version from github
    https://github.com/buddydev/bp-shortcodes

    That will fix the issue.

    Regards
    Brajesh

The topic ‘Profile tabs and profile fields’ is closed to new replies.

This topic is: not resolved