Direct download link shortcode

in Download Manager Free

Viewing 6 posts - 1 through 6 (of 6 total)
Mar 24, 2017 at 11:14 am
#55595

Hi, I need to put a direct download link for each file into my own custom button.

I tried something like this, stytling the link, but the shortcode do not generates a real link.

Download

I need help

Mar 24, 2017 at 12:27 pm
#55600
Moderator
Shahriar
Staff

You can do it manually in this way:

<a href="//your-site-url/?wpdmdl=[ADD_FILE_ID]">[your custom button image or text]</a>

Or, use short-code:

[wpdm_package id="[ID]" template="link-template-button.php"]

And use the following add-on to add your custom button image:

WPDM Image Button

Mar 24, 2017 at 5:06 pm
#55617

Why it is not presented into documentation?

Sep 14, 2018 at 4:25 pm
#87125

Is there a way to create a direct download hyperlink for another site with the pro version?

Sep 27, 2018 at 6:42 pm
#87533
Moderator
Shafayet
Staff

@bzingler, no shortcode for that, but you can use HTML as @shahriar mentioned:

<a href="//your-site-url/?wpdmdl=[ADD_FILE_ID]">[your custom button image or text]</a>
Oct 17, 2018 at 3:17 pm
#88286

Hi, this is useful, but I want to use this idea in a Toolset View Loop to give a direct download link, so the ID is a variable. What field do I need to use (e.g. wpv-post-url) please?

Viewing 6 posts - 1 through 6 (of 6 total)

The topic "Direct download link shortcode" is closed to new replies.