Getting URL for a cropped image version

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #105927
    Dennis
    Guest

    Hello,

    I am using custom fields in my XML feed. The text based custom fields are working as intended.

    However I am using a fields which contains an image. I need the URL of the image. See my code below:

    <image_url_cus>[alg_product_custom_field name="vaelg_billede"]</image_url_cus>

    =

    <image_url_cus>{"original_image":"5707","cropped_image":15792}</image_url_cus>

    I need to get the URL of the cropped image ID, which in this example is 15792

    Any thoughts?

    Dennis

    • This topic was modified 1 year, 4 months ago by Omar Dabbas.
    #105928
    WPWhale
    Moderator

    Hi Dennis,

    The 15792 here isn’t the URL, it’s probably the ID of the image, if you want to get the URL you can use:
    [alg_product_image_url]

    If you want to extract the image ID only, let me know and I will see what options can be used.
    Omar

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.