I am inserting data in WordPress from my php script, everything is going smooth but i am facing one big problem to set Featured image from external link. I have almost solve this problem by adding image link to wp_postmeta
I have added
_wp_attached_file with external image link
_thumbnail_id giving it post id of the link
it work fine ... but there a small problem ... image is getting defauld url+external image link
http://****.com/wp-content/uploads/http://i.imgur.com/waiBWaV.jpg
My Question is how can i remove default link http://****.com/wp-content/uploads/ so only external image link display and i get right image.
Thx