So I have a problem when making a post. If I press enter and make a new line in the editor and press safe the line break diapers. But when I show the post it have inserted a line break. So somehow the editor is not able to show the line break? If I save the editor again the line break disappears from the post as well.
Any ideas?
I read in a post to try and use:
remove_filter ('the_content', 'wpautop');
remove_filter('the_content', 'wptexturize');
Which I did and now line breaks don’t work at all.
I have build a custom page where the posts are shown with the
echo the_content();
You’ve stumbled across a ‘hidden’ feature of WordPress and TinyMCE (the visual editor) it has a problem with line breaks and strips them out.
Try either of these two plugins:
http://wordpress.org/extend/plugins/line-break-shortcode/
http://wordpress.org/extend/plugins/simple-breaks/
Ah sorry I just realized that I had margin: 0 on all elements to reset all defaults in browsers… this caused the issue!