WordPress.org

Ready to get started?Download WordPress

Forums

Forcing line breaks (2 posts)

  1. hj
    Member
    Posted 3 years ago #

    I am absolutely gobsmacked that this still ain't fixed!!

    There was a thread about it 3 years ago!... http://wordpress.org/extend/ideas/topic/let-us-force-a-line-break

    WordPress, what ARE you doing?...!!!

  2. jonradio
    Member
    Posted 3 years ago #

    Someone may have a better idea -- I know some folks use the HTML tab and never revert to the Visual tab which causes the problem you refer to, as well as many others -- but I use the extremely secure Shortcode Exec PHP plug-in, and use it to write my own php to insert HTML that won't get touched in the Visual tab.

    For example:

    $space = '&' . 'nbsp;';
    return " $space$space$";

    is my shortcode for [dollar], which ensures three blanks before each dollar sign, used for restaurant menus.

    As you can see from the need to separate the ampersand from the nbsp, the plug-in is not without its challenges, too, but it does work very well for me.

    In your situation, you could use it to insert <p>, </p> and br /> for line breaks.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.