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?
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
BrajeshThank 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.
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
BrajeshHi 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
BrajeshHi Chris,
Thank you for the patience.Please update the shortcode plugin to current version from github
https://github.com/buddydev/bp-shortcodesThat will fix the issue.
Regards
Brajesh
The topic ‘Profile tabs and profile fields’ is closed to new replies.