• Resolved Cassey’s Designs

    (@casseysdesigns)


    Love the plugin!!!

    My users are able to fill out a multi-line textbox “My Story” and most have multiple paragraphed stories…

    The problem is that pressing enter does not create a line break when their profile is viewed, however you can plainly see the line breaks if you go back to edit the text.
    I did try entering html line breaks and the tags were striped upon saving.. I would prefer not to have to use html anyway as most of my users are not tech savy…

    What do I need to change to make the front end display the line breaks correctly?

    Thanks!!!

    http://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Miguel López

    (@atallos)

    Hi,

    I believe this is already working… I’ve tried in my test site and multi-line textbox displays the line breaks… Try to use buddypress default theme to see if it works.

    NicheLabs

    (@allennichelabs)

    I’m having this same problem. If I use the default profile-loop.php file it works but if I used either xprofile_get_field_data(‘Description’) or bp_profile_field_data( ‘field=Description’ ) then I loose the <p> tags.

    There has to be a filter somewhere that is stripping these.

    Rami

    (@ramirocastro)

    Hello guys, I have the latest plugin update, and I’m using bp_get_profile_field_data(“field=[name….]”) and the same issue, it’s not doing line breaks.

    When I edit the profile, it properly shows the line breaks, but when i’m viewing the profile with bp_get_profile_field_data(“field=[name….]”), it puts all the lines together.

    Any thoughts,

    Thanks guys
    Ramiro.

    Rami

    (@ramirocastro)

    sorry guys, it seems to be my problem as I got back to a clean buddypress and it’s now working.

    cheers
    Ramiro

    Hi there…I am facing this issue…line breaks are not showing up on the front end

    Other than reverting to the default theme (not an option!) is there a solution?

    Thanks,

    Ian

    I got this working doing this:

    echo wpautop($data);

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘No Line Breaks in Multi-Line Textbox…’ is closed to new replies.