WordPress.org

Forums

[resolved] WP2.7: Image - Insert Into Post - Wrong HTML code genrated in post (4 posts)

  1. defade
    Member
    Posted 6 years ago #

    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

  2. defade
    Member
    Posted 6 years ago #

    Is there nobody who has heard of this error before?

  3. ApplianceJunk
    Member
    Posted 6 years ago #

    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

  4. jkershner
    Member
    Posted 6 years ago #

    I beleve this has been resolved in the 2.8 release.

Topic Closed

This topic has been closed to new replies.

About this Topic