The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Download Shortcode
Link not working properly (7 posts)

  1. boundlessriver
    Posted 2 years ago #

    Okay this may be a dumb question, but I can't seem to get the download link to work properly. Basically I've typed in [download label="Download"]http://www.boundlessriver.com/wp-content/uploads/Silent%20Memories.pdf[/download] for the download link. The link can be found here: http://boundlessriver.com/?page_id=97

    When the download link is clicked, it redirects to http://boundlessriver.com/wp-content/force-download.php?file=uploads/http://Silent%20Memories.pdf which is obviously not where I intended the link to redirect to. I saved the permalink settings as suggested in previous posts to no avail. Any suggestions? I have a feeling I'm just doing something dumb :(



  2. Drew Jaynes
    Docs Czar
    Plugin Author

    Posted 2 years ago #

    Hi there. Sorry you're having problems.

    I saved the permalink settings as suggested in previous posts to no avail.

    From the link you provided, I can see that you have your permalinks set on the default, which is to say, that "permalinks" are currently disabled on your site.

    However, the shortcode should still generate a valid download URL despite not using permalinks. The link URL the shortcode should generate is the following: http://boundlessriver.com/wp-content/force-download.php?file=uploads/Silent Memories.pdf

    So that said, let's see if we can't figure out what else is going on here. Can you tell me what if any other plugins you have activated are? Have you tried deactivating all of them except Download Shortcode? Have you tried enabling permalinks and saving them?

  3. boundlessriver
    Posted 2 years ago #

    Hey there, thanks for the speedy reply! So I enabled permalinks and the download link is now slightly changed when I click it, but still not functioning properly. Clicking the download text now directs to: http://boundlessriver.com/download/http://www.boundlessriver.com/wp-content/uploads/Silent%20Memories.pdf which is edging a little closer it seems to what is actually supposed to download.

    I'm currently using:
    *Google Doc Embedder
    *Kebo Twitter Feed

    I tried disabling all of them except Force Download Shortcode, but that didn't seem to fix anything. Thanks again for all your help with this!

  4. Drew Jaynes
    Docs Czar
    Plugin Author

    Posted 2 years ago #

    To be honest, I'm a little stumped. Essentially what's happening is that the full media URL is being injected instead of the relative path.

    So for instance, it's currently generating the following URL:

    The "http://boundlessriver.com/wp-content/" part in the middle is the issue.

    The URL should actually be generated as this (which works):

    So, moving forward. I may need to take a closer look at your setup, as well as possibly give you a development version that should provide more helpful information that I could use to diagnose your set up.

    If you're interested in that, send me an email at drew (at) drewapicture.com and I'll do my best to get this resolved for you.

  5. tckk75
    Posted 2 years ago #

    Hi Drew,

    I guess I am having similar issue with my implementation.

    You can view the page here:

    The link that uses Shortcode is the New Link. The code behind it is [download label="New Link"]http://btct.tly.sg/assets/1-Net-Managed-Services.pdf[/download]

    The link it generates is "http://btct.tly.sg/download/http://btct.tly.sg/assets/1-Net-Managed-Services.pdf" which will be a blank page.

    Please help.

    Thank you!

  6. ciaran12
    Posted 2 years ago #

    Hi Drew,

    Exact Same issue here on a site with pretty permalinks. The page I have the shortcode on is a private page at:


    but when it is clicked it tries to take you to:


    I have:

    flushed permalinks
    deactivated all other plugins
    Checked that forced-download.php is in wp-content folder

    All to no avail. Any help here would be great, your plugin seems to fit an essential need of this site, one I'd like to employ a lot more, but I'm really struggling to get it to work.


  7. Drew Jaynes
    Docs Czar
    Plugin Author

    Posted 2 years ago #

    Hi ciaran12,

    Would you mind making your own thread so I can help you troubleshoot separately?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.