Title: WP2.7: Image &#8211; Insert Into Post &#8211; Wrong HTML code genrated in post
Last modified: August 19, 2016

---

# WP2.7: Image – Insert Into Post – Wrong HTML code genrated in post

 *  Resolved [defade](https://wordpress.org/support/users/defade/)
 * (@defade)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/wp27-image-insert-into-post-wrong-html-code-genrated-in-post/)
 * Hi…
 * A bug seems to have cropped up for me since upgrading to WordPress 2.7 regarding
   the ‘insert image into post’ function
 * Basically, any images i insert into a post are not ‘clickable’ and are not ‘linked’
   to the bigger copy of the image…
 * It would seem from a simple bit of investigation, that when i click the ‘insert
   image into post’ button, that the generated HTML is incorrect
 * Here is a couple of examples of HTML code before and after the WP2.7 upgrade
 * ————————————————————————–
 * BEFORE WP2.7:
 * this was the code that got entered into a post when pressing the ‘insert into
   post’ button
 * `<a href="http://lesandpaul.com/wp-content/uploads/2008/10/may-2008-035-custom.
   jpg" rel="attachment wp-att-179"><img src="http://lesandpaul.com/wp-content/uploads/
   2008/10/may-2008-035-custom-392x590.jpg" alt="" title="Dad & Paul" width="392"
   height="590" class="aligncenter size-medium wp-image-179" /></a>`
 * ———————————————————————-
 * AFTER WP2.7 UPGRADE:
 * this is now the code that is entered into a post when pressing the ‘insert into
   post’ button
 * `<img src="http://lesandpaul.com/wp-content/uploads/2008/10/may-2008-035-custom-
   392x590.jpg" alt="Dad & Paul" title="Dad & Paul" width="392" height="590" class
   ="aligncenter size-medium wp-image-179" />`
 * ————————————————————————-
 * As you can see, the code is COMPLETELY different… it appears to be entering only
   the code to place the image into the post, without it linking to the fullsized
   image…
 * How do i fix this?
 * Many Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [defade](https://wordpress.org/support/users/defade/)
 * (@defade)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/wp27-image-insert-into-post-wrong-html-code-genrated-in-post/#post-953466)
 * Is there nobody who has heard of this error before?
 *  [appliancejunk](https://wordpress.org/support/users/appliancejunk/)
 * (@appliancejunk)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/wp27-image-insert-into-post-wrong-html-code-genrated-in-post/#post-953472)
 * You are clicking the “File URL” or the “Post URL” button before the “Inster into
   Post” button, right?
 * By doing that it fills in the Link URL information.
 * AJ
    [ApplianceJunk.com](http://appliancejunk.com/blog)
 *  [jkershner](https://wordpress.org/support/users/jkershner/)
 * (@jkershner)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/wp27-image-insert-into-post-wrong-html-code-genrated-in-post/#post-953755)
 * I beleve this has been resolved in the 2.8 release.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘WP2.7: Image – Insert Into Post – Wrong HTML code genrated in post’ is
closed to new replies.

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [html](https://wordpress.org/support/topic-tag/html/)
 * [image](https://wordpress.org/support/topic-tag/image/)
 * [WP2.7](https://wordpress.org/support/topic-tag/wp2-7/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [jkershner](https://wordpress.org/support/users/jkershner/)
 * Last activity: [16 years, 10 months ago](https://wordpress.org/support/topic/wp27-image-insert-into-post-wrong-html-code-genrated-in-post/#post-953755)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
