• Resolved SteveAx

    (@steveax)


    Hello,
    I need to set the featured image to an external image but I need to access that image using a shortcode from another plug-in… is there a way to do that? I am not opposed to editing files to accomplish this.
    Thanks,
    Steve

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

    (@marceljm)

    Hi, @steveax.

    Let’s see if I understood.

    In the URL field of this plugin you want to use a shortcode instead of a URL. That’s it?

    Thread Starter SteveAx

    (@steveax)

    yes.. in a perfect world this would be coded in so that nothing needs to be entered for the URL… a shortcode that pulls an external URL (that is from another plugin I am using) would be coded in… does that help?

    Plugin Author Marcel

    (@marceljm)

    It’s already implemented in Premium version.

    But it’s a beta feature for now.

    Theoretically it allows you to use anything as “featured image”, not only images.

    • This reply was modified 7 years, 2 months ago by Marcel.
    Thread Starter SteveAx

    (@steveax)

    OKay great.. just to be clear if I use:
    [amazon-element asin=”‘.get_field(itemasin).'” fields=”full-image_clean” container=””]
    in the URL field of a post (that Shortcode returns a URL of an image) your premium plugin will evaluate taht shortcode and set it as the featured image? right?

    Pne last thing, does the image in teh url get downloaded and saved in the media library? I am trying to prevent the featured image from having to load externally every time the post is accessed.
    Thanks,
    Steve

    Plugin Author Marcel

    (@marceljm)

    Hey, @steveax.

    I don’t know yet but I can test for you. It’s a valid URL? Which plugin I have to install?

    There is no downloads.

    Thread Starter SteveAx

    (@steveax)

    The shortcode sample above is using 2 plugins..
    The shortcode istself is from ‘Amazon Product in a Post Plugin’ and the get_field part is from ‘Advanced Custom Fields’
    I create a filed called itemasin and enter the amazon product ASIN number in that field in a post.. then tht shortcode generates the url for the Amazon image…
    In a working test I am using that code… if the Amazon ASIN is B01F2JQ8NQ then the url that is created by the example shortcode is https://images-na.ssl-images-amazon.com/images/I/41wgKRkULJL.jpg which is the image I want as the featured image. Let me know if that helps.
    Thanks!

    Plugin Author Marcel

    (@marceljm)

    @steveax, the plugin asks for a Key. I don’t have that.

    Thread Starter SteveAx

    (@steveax)

    I can email you the info.. can I have your email?

    Plugin Author Marcel

    (@marceljm)

    Sure, @steveax.

    It’s in the plugin settings.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘I need to grab URL with a shortcode’ is closed to new replies.