WordPress.org

Ready to get started?Download WordPress

Forums

I dont want wordpress to automatically format my code! (5 posts)

  1. blujay
    Member
    Posted 8 years ago #

    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??

  2. Samuel B
    moderator
    Posted 8 years ago #

    Tried doing it without the wysiwyg editor?

  3. blujay
    Member
    Posted 8 years ago #

    Hm, AFAIK the excerpt field isn't WYSIWIG?

  4. Samuel B
    moderator
    Posted 8 years ago #

    How are you adding your images then?

  5. blujay
    Member
    Posted 8 years ago #

    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 :-(

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.