HTML changes when updating posts
-
When I insert an image into a post with a caption, using the visual editor. When I switch to the HTML editor, this is the code that I see:
[caption id="attachment_109" align="aligncenter" width="300" caption="Dating a Kardashian = 18,000 automatic followers on Twitter"][media-credit name="Snarkerati.com" align="aligncenter" width="300"]<img class="size-full wp-image-109" title="Reggie Bush and Kim Kardashian" src="https://www.1stroundbust.com/wp-content/uploads/2011/05/reggie-bush-kim-kardashian.jpg" alt="Reggie Bush and Kim Kardashian" width="300" height="278" />[/media-credit][/caption]
That block of code works for me. But when I save the post, that block of code changes into this:
<div class="mceTemp mceIEcenter">[media-credit name="Snarkerati.com" align="aligncenter" width="300"]<img class="size-full wp-image-109" title="Reggie Bush and Kim Kardashian" src="https://www.1stroundbust.com/wp-content/uploads/2011/05/reggie-bush-kim-kardashian.jpg" alt="Reggie Bush and Kim Kardashian" width="300" height="278" />[/media-credit]<dl id="attachment_109" class="wp-caption aligncenter" style="width: 310px;"><dt class="wp-caption-dt"></dt><dd class="wp-caption-dd">Dating a Kardashian = 18,000 automatic followers on Twitter</dd></dl></div>
Obviously, I don’t want the code to change. I’m wondering why it’s changing, and what can be done to stop it.
I’m using MC version 1.1.2, and WordPress version 3.2.1.
Any help is greatly appreciated. Thanks!
- The topic ‘HTML changes when updating posts’ is closed to new replies.