WordPress.org

Ready to get started?Download WordPress

Forums

[solution]Paragraph line breaks bug. (4 posts)

  1. mpie
    Member
    Posted 7 years ago #

    I saw a lot of posts about ppl having problem with the Paragraph not being converted correctly or change it to <br>.
    Here's 1 quick little solution:

    open wp-includes/post-template.php

    find line 57: echo $content;

    replace with: echo nl2br($content);

    Hope this helps.

    -Mpie-

  2. sergegrandbois
    Member
    Posted 6 years ago #

    Nope doesn't do a thing...

  3. mjg
    Member
    Posted 6 years ago #

    Worked for me, thanks, except it was line 79.

    I've got no idea what caused my paragraph breaks to suddenly disappear. I disabled recent plugins and tried stylesheet changes, but nothing worked until I read this post.

  4. rascal
    Member
    Posted 6 years ago #

    This worked like a charm.

    Weird thing was, I have all three of my WP sites set up the same way with the same versions and only one was having this problem. Theme issue??

Topic Closed

This topic has been closed to new replies.

About this Topic