Download link not working in galleries

Bring Your Business to LifeSupportImage StoreDownload link not working in galleries

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #54494
    d3ad
    Participant

    Hello Hax,

    I would like to give acces to my clients to download the original file from a specific gallery.

    I thought that checking Link to attachement would work, but its not.

    The actual link does appear but when I click on it, it looks like it just reopen the same page image or just like a refresh. It does not prompt to save the image:

    http://cmfphotographie.com.previewdns.com/wp-content/uploads/link.jpg
    link

    Any Idea how to activate the download link correctly?

    #54510
    Xpark Media
    Keymaster

    @d3ad,

    You need to provide a link to the file, not the attachment page. Two ways to do it using the plugin’s hooks or modify the attachment template to add the link.

    you can get the image values by using the function get_post_meta( $image->ID, '_wp_attachment_metadata', true );

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