Let’s make a sentence with multiple line-breaks in WordPress.
Let’s line break using shift + return.
Ok, here’s my first single line break. Let’s publish and see what it does.
Let’s make a sentence. Oh, that is a sentence. Let’s line break using shift + return.<br>Ok, here’s my first single line break. Let’s publish and see what it does.That seems to work. Now let’s add five line breaks consecutively.
Ok let’s take a look.
That seems to work. Now let's add five line breaks consecutively.<br><br><br><br><br>Ok let's take a look.Let’s just hit return three time without shift.
Ok…
Let's just hit return three time without shift.<br><br><br>Ok...Here’s the php I used…
remove_filter( 'the_content', 'wpautop' );remove_filter( 'the_excerpt', 'wpautop' );add_filter( 'the_content', 'nl2br' );add_filter( 'the_excerpt', 'nl2br' );It works!