Home Forums Plugin Support WP User Frontend Pro No line breaks in custom fields

This topic is: resolved

This topic contains 6 replies, has 3 voices, and was last updated by  paperweight 5 years, 11 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #4674

    Joakim-sb
    Participant
    Post count: 3

    Hey,

    Thanks for a great plugin. However, we've add custom fields but the line breaks won't apply. Any thoughts on what we are missing?

    http://2013.studentkrubb.se/chickenalaking/

    Thanks!

    #4692

    Tareq Hasan
    Keymaster
    Post count: 2831

    How are you printing the custom field values? Maybe using the nl2br function will work.

    ex: <?php echo nl2br( get_post_meta( $post->ID, 'meta_key', true ) ); ?>

    #4693

    paperweight
    Participant
    Post count: 122

    I have this issue too. For example I have a textarea and when users use line breaks and click save it is all saved without the linebreaks. The nl2br would not assist in that situation since this is not yet outputting — it is instead just trying to save the original info.

    #4698

    Tareq Hasan
    Keymaster
    Post count: 2831

    I've just tested, I've used a custom field textarea field. The line breaks was saving fine and I can see the line breaks in the admin panel and in frontend edit post area too. So that should be working.

    #4704

    Joakim-sb
    Participant
    Post count: 3

    Hey,

    It seems as if you are posting from within the wp-admin instead of using the frontend posing it ignores the line breaks.

    #4706

    paperweight
    Participant
    Post count: 122

    I have had this issue with various WPUF versions (not only wedevs version but also the original). I even hired an outside developer to help develop a customized version and this was one of the bugs I wanted him to fix. it does not happen all the time, but I estimate about 50% of the time it happens, so it is difficult to troubleshoot.

    It usually seems to break when using Opera, though I have had issues also with Firefox. I have not seen the issue with IE or Maxthon.

    #4707

    paperweight
    Participant
    Post count: 122

    We are posting from the frontend by the way, not from the wp-admin backend….

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘No line breaks in custom fields’ is closed to new replies.