• Resolved marcelo2605

    (@marcelo2605)


    On XML file, my image link in show like that:

    <g:image_link>/wp-content/uploads/2018/01/qi0302_SM.png</g:image_link>

    Is there a hook to correct this link and add the complete URL?

    • This topic was modified 7 years, 4 months ago by marcelo2605.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi Marcelo,

    Have you mapped the g:image_link to your ‘Main image’ attribute? If so than the plugin is using this function to get the URL:

    https://codex.ww.wp.xz.cn/Function_Reference/wp_get_attachment_url
    “Returns a full URI for an attachment file or false on failure.”

    So must be something with your config or mapped attribute.

    All the best,
    Eva

    Thread Starter marcelo2605

    (@marcelo2605)

    Yes, the g:image_link in mapped to Main image attribute. I keep this as default. But the domain is not added to link.

    Is possible to add the domain in the prefx field?

    Hi Marcelo,

    I wonder why the domain is not showing at all? The WP function our plugin uses for getting the image URL explicitly states that it gets the entire URL. It does so for us and all of our other users so there must be something ‘different’ going on in how you have configured your WordPress. Wouldn’t it be a better option to fix that instead?

    Using the prefix field is not going to work I think as a space will be put between the domain and the rest of the URL.

    All the best,
    Eva

    Thread Starter marcelo2605

    (@marcelo2605)

    Hey Eva, problema fixed!

    I’m using a plugin called Soil (https://github.com/roots/soil) and it have a module to create relative URLs. A just disable this module and works.

    Thanks 😉

    Hi Marcelo,

    Great to hear you figured it out!

    All the best,
    Eva

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Image URL’ is closed to new replies.