Output Multi-line Text Area, Keep Formatting
I have an xprofile field called “Biography” which is a multi-line text area.
In profile-loop.php I am trying to output the content of this xprofile field in a certain place.
Usually this does the trick for all the other xprofile fields:
bp_profile_field_data( 'field=Biography' );
However when this is outputted, it loses all it’s formatting from the rich text editor that the member enters on their edit.php page.
I have also tried to mimic the native BP profile-loop.php code:
while ( bp_profile_fields() ) : bp_the_profile_field(); if (bp_get_the_profile_field_id() == 37) : bp_the_profile_field_value(); endif; endwhile;
but this hasn’t worked either.
Can someone please enlighten me on how to output this multi-line text area while keeping its formatting?
- You must be logged in to reply to this topic.