image code appears beneath images
-
I have a weird problem with image attributes appearing beneath my images. The weirdest is that it varies where the code appears when I view the post/page.
This happens on posts where I’ve picked the contents from a html site (which I’m converting to WP). So of course I checked the code, but it seems to be the same as when I insert the images in WP – using the upload/insert feature.
Now, the attributes first appear under the first image, nowhere else. Then I edit the code, removing all attributes, and it looks fine – except that now attributes show up under the second image. Cleaning that one, I get code under the third image and so on.
The code showing is just a part of the image’s attributes, like
‘Basilicata Diana ” width=”180″ height=”270″ />’
while the image’s complete code would be
‘<img src=”https://www.dolcevita.no/fig/bilder/italia/basilicata/maratea_acquafredda/DSC_8593_270.jpg” alt=”Maratea Basilicata Diana ” width=”180″ height=”270″ />’
If I wipe all attributes, and save, I MIGHT reinsert new attributes using the Advanced TinyMCEs Edit image feature – without any code showing up when I view the page afterwards. Maybe.
So what’s the difference? Something I’ve missed? Does it matter if I paste the code or if I insert it using WP? Does it matter for instance how many letters I use in the alt text?
And how can I avoid having to clean about 1400 images in the site?
Thanks a lot for any hints,
Kjetil
PS: A typical page is here – the first little image with wiped code, the next with pasted code intact.
- The topic ‘image code appears beneath images’ is closed to new replies.