if you want to use your own code – do not switch between Code and Visual. At saving it it is always the Visual that is in effect and screwing up your formatting.
Turn it off > Users > My profile.
I have a similar problem, but mine is in relation to creating pages. Such as if I insert :
/* Correct code snippet
—————————*/
<div id=”contactright”>
<img alt=”image.jpg” src=”image.jpg” height=”133″ width=”200″>
<p>
<b>T:</b> Phone Number
</p>
<img alt=”image2.jpg” src=”image2.jpg” height=”133″ width=”200″>
<p>
<b>T:</b> Phone Number
</p>
It adds an additional random <p> to my img tag when I create the page.
It will do something like this :
/* incorrect code snippet
—————————*/
<div id=”contactright”>
<img alt=”image.jpg” src=”image.jpg” height=”133″ width=”200″>
<p>
<b>T:</b> Phone Number
</p>
<p><img alt=”image2.jpg” src=”image2.jpg” height=”133″ width=”200″></p>
<p>
<b>T:</b> Phone Number
</p>
trying to see if there is another way to fixing this other than tricking it by putting a <div id=”blank”> before image2 starts.
–> Forgot to mention that I have disabled the visual editor.
So even though you’ve got Visual Editor disabled, WP is surrounding your standalone img tag with a p tag?
-dhbarr.
Thank you for your help moshu. That worked fine, although I would like to use the visual editor as well. I’m not exactly a code savvy guy.