Problem with links added to images inserted into posts in wysiwyg editor??

Discussion in 'WordPress' started by emmaburge, May 5, 2011.

  1. #1
    I'm having a problem with the way Wordpress inserts images into posts/pages.

    When it inserts, it adds a link as bolded here:

    <a href="http://winninghealthsolutions.com/new/history/attachment/dsc_3033-history2/" rel="attachment wp-att-598"><img src="http://winninghealthsolutions.com/new/wp-content/uploads/2011/04/DSC_3033-history2-160x106.jpg" alt="" title="History" width="160" height="106" class="alignright size-thumbnail wp-image-598" /></a>

    Firstly, i dont want it to link there - i want it to just link to the posts.

    Secondly, that url (http://winninghealthsolutions.com/new/history/attachment/dsc_3033-history2/) brings up a php error:

    "Catchable fatal error: Object of class WP_Error could not be converted to string in /homepages/28/d331258049/htdocs/new/wp-content/themes/supercms/functions.php on line 324"

    I make sure that when inserting the image that "Post url" is selected as the place the image should link to. it doesnt make any difference - the same url is still used, and the same error message on a page shown when the image is clicked.

    can someone tell me either how to get the image to link somewhere else - even just the actual image url ending .jpg - or eliminate this problem??
     
    emmaburge, May 5, 2011 IP
  2. ayekaye01

    ayekaye01 Peon

    Messages:
    214
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    are you using any plugin..or you can just edit the link <a href=""></a>...paste the url of the article you want to link.
     
    ayekaye01, May 5, 2011 IP
  3. deepesh2002

    deepesh2002 Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i think its a plugin that is making this type of trouble just check and find out the plugin and replace with other same kind of plugin or edit manually.
     
    deepesh2002, May 5, 2011 IP