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