wordpress 2.0 altering tags (br and p)
-
since upgrading to 2.0 from 1.5 i’ve been having problems with wordpress changing the contents of my posts. the rich editor was horrible and added dozens of
<strong>
,<big>
, and<div>
tags everywhere so i had to disable it. i figured that would fix the problems i was having with the code i was typing making it to the browser.now, using the plain html editor i find the same thing is happening. line breaks are being replaces with empty paragraphs and some line breaks are being dropped out completely.
for example, i have a screenshots page on my site worked fine before. each screenshot, a title and a description were kept in a css defined box with a line break between each box. like so:
<div class="box"><strong>title</strong>
<p>description</p><br clear="left" /></div>
<br>
<div class="box"><strong>title</strong>
<p>description</p><br clear="left" /></div>
<br>
the code that is sent to the browser is:
<div class="box"><strong>title</strong>
<p>description</p><br clear="left" /></div>
<p></p>
<div class="box"><strong>title</strong>
<p>description</p><br clear="left" /></div>
<p></p>
i went so far as to edit the code directly in the database with phpmyadmin and it still doesn’t work. the code simply will not make it to the browser intact. wordpress is somehow editing it and replacing tags. this has not only caused my design to break, but my xhtml doesn’t validate either as single
<p>
‘s are being thrown in as well without a closer.other people have run into this, but there’s no clear resolution as to why WP2 is replacing tags and how to fix or disable the “feature”. i just want the code in the post’s cell to actually make it to my browser unedited. any idea how to accomplish this?
i’ll post a link to the page in question if necessary…
- The topic ‘wordpress 2.0 altering tags (br and p)’ is closed to new replies.