WordPress.org

Ready to get started?Download WordPress

Forums

Featured image from URL (6 posts)

  1. Krishnaa
    Member
    Posted 1 year ago #

    Hi all,

    I have just installed a wordpress. The featured image is working fine if you upload any image to the host server. But if try to use any image from external url. It wont work. I have googled whole day to figure out why this thing is happening. I only ended up to a paid plugin , which a guy is keep on promoting in every post and that is purely ridiculous.

    I am bit suprised, we have lot of developers who are coding lots of various plugins, but no one to code this only 1 plugin.

    If any of you know the alternate method to use an external url as featured image, please let me know. Thank you all.

  2. DJDoubleXL189
    Member
    Posted 1 year ago #

    Not sure how much support you'll find for this. A lot of pages may block out referrer URLs from grabbing their images. Additionally, doing so can get you into a bunch of legal trouble, which would cost you a lot more than a plugin.

  3. Krishnaa
    Member
    Posted 1 year ago #

    Not it wont, actually I want to fetch images from my other website.

  4. peter achutha
    Member
    Posted 1 year ago #

    Have you tried using some HTML", for example :-

    <img src="http://www.myotherdomain.com/first-pic.jpg" alt="this is a nice picture" width="250" height="188">

    Change what you need.

  5. Krishnaa
    Member
    Posted 1 year ago #

    No, it wont work for the featured image. You can get the image in your post, not in the featured image.

    No one got solution for this?

  6. peter achutha
    Member
    Posted 1 year ago #

    Sorry I did not fully understand your requirement.

    No not for featured image but you can make it look like a featured image by placing it in the same location as the featured image.

    But there is a little trick you can play. Go select any current image on your site and set it as your featured image. Then switch your post edit from Visual to Text mode and you will see code similar to mine as shown below: -

    <img class="alignleft size-full wp-image-4205" title="li07bl00thumbvc" alt="how to make oregano liposomal vitamin c" src="http://bachutha.com/wp-content/uploads/2012/11/li07bl00thumbvc.jpg" width="300" height="300" />

    You will see that WordPress uses a class, don't touch that. Then you will see that src shows where the image is located. Change the src value. I changed mine to http://www.dpawhs.com/pix/computerpix.jpg which is an image from another site of mine (non WordPress site). My new HTML code for the featured image was:-

    <img class="alignleft size-full wp-image-4205" title="li07bl00thumbvc" alt="how to make oregano liposomal vitamin c" src="http://www.dpawhs.com/pix/computerpix.jpg" width="300" height="300" />

    Make sure if the image is different size correct the values for width and height and save the post. Then view the post like a visitor and you will see the image from the other website showing up.

    A word of advice at this point, your pages will be slower as the web browsers will request the image form another site and not form your site's harddisk. If the other site stops working or crashes or goes off line your pages will have blanks where the images were supposed to be.

    Hope this helps.

Topic Closed

This topic has been closed to new replies.

About this Topic