Skip to:
Content
Pages
Categories
Search
Top
Bottom

Output Multi-line Text Area, Keep Formatting


  • mortspud
    Participant

    @mortspud

    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?

    Many thanks.

Viewing 1 replies (of 1 total)

  • mortspud
    Participant

    @mortspud

    I’ll phrase this a differnt way.

    Is there a way to get serialized xprofile field data?
    Functions like

    bp_profile_field_data() and xprofile_get_field_data()
    seem to be unserializing the data.

    Anyone?

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar