I’ve been running my blog on Wordpres for over a month now, and I am mostly happy with what I’m seeing. It does most of what I want it to do natively. As for what it doesn’t do natively, there is usually a plugin to do that for you.
The only thing I’ve as yet been unable to make it do satisfactorily, is line breaks. TinyMCE, the text editor in WordPress, executes a back-end filtering process every time you switch from Visual to HTML and back, as well as whenever you save your posts. This filtering process, for some reason, filters out both <br>
, <p>
and </p>
.
I originally tried to resolve this by installing a plugin called TinyMCE Advanced, which worked pretty nicely, except that, when I was typing up this post, it filtered so that my code examples above were converted so that they became actual HTML tags.
I then installed another plugin called TinyMCE Valid Elements, in which I defined <br>
as a valid element. Sure enough, TinyMCE no longer filtered out the tag, but it wasn’t parsed either.
I will continue to try to fix the problem. In the meantime, I have a workaround. By adding
wherever I want a break, I get my line breaks.
Note: Comments disabled due to massive amounts of comment spam
Tag: Hack
-
WordPress and the Mystery of the Disappearing Line Breaks