Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Marcel

    (@marceljm)

    Hi, Cris.

    With hardcode it may be possible. But the plugin will append always the same text in the end for all URLs. So for all URLs of external featured images you will have the same append in the end. Is it what you want?

    Plugin Author Marcel

    (@marceljm)

    I’m still waiting a response, Chris.

    Thread Starter Chris

    (@frostie)

    Sorry for delay.

    In the External Featured Image field in a post, I would enter something like https://www.boots.com. Is there a way I can always append https://s.wordpress.com/mshots/v1/ to the beginning of whatever appears in the field?

    Plugin Author Marcel

    (@marceljm)

    Hey, Chris… It’s possible!

    1) Go to featured-image-from-url/admin/meta-box.php
    2) Replace

    update_post_meta($post_id, ‘fifu_image_url’, esc_url($_POST[‘fifu_input_url’]));

    by

    update_post_meta($post_id, ‘fifu_image_url’, esc_url(“https://s.wordpress.com/mshots/v1/” . $_POST[‘fifu_input_url’]));

    3) Save
    4) Create a New Post
    5) Fill the external Featured Image field: https://www.boots.com
    6) Click on Preview button (THERE IS NO PREVIEW AT A FIRST MOMENT, SORRY)
    7) Click on Update button
    8) You can see the image now! =)
    9) If it doesn’t work, let me know. Otherwise, if the plugin is doing all you need, please give a 5-star rating! I appreciate that =)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can you hardcode an image?’ is closed to new replies.