Support » Fixing WordPress » I dont want wordpress to automatically format my code!

  • blujay

    (@blujay)


    Ok, here’s my problem. If you take a look at my site and examine the code in the “latest work” area you will notice that each thumbnail image is wrapped in a paragraph tag. The reason for this is that to get that image to display, I am putting the code for the image in the excerpt of the article, the index page just displays the excerpt as a link to the article. However, wp is automatically putting it (the thumbnail) in a paragraph tag which normally would be fine, honever in this case, as it’s an image inside a link it makes my html invalid. I’d like to fix this if possible… Any ideas??

Viewing 4 replies - 1 through 4 (of 4 total)
  • Samuel B

    (@samboll)

    Tried doing it without the wysiwyg editor?

    blujay

    (@blujay)

    Hm, AFAIK the excerpt field isn’t WYSIWIG?

    Samuel B

    (@samboll)

    How are you adding your images then?

    blujay

    (@blujay)

    Hi,

    I’m adding them in the excerpt. EG, in the excerpt field would be: <img src=”source” alt=”alt” />. Then the homepage loop basically makes a permalink to the article and the content for the link is the exceprt. But WP is putting Paragraph tags around the image thus invalidating my html 🙁

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘I dont want wordpress to automatically format my code!’ is closed to new replies.