Shortcode: download

With the download shortcode you can display one of your downloads.

Arguments

This shortcode takes the following arguments:

idThe download’s ID which you want to display. You can find this from the downloads page in admin.
autopSet to true to have WordPress wrap the link in paragraph tags.
templateThe template used to output the download. Leave blank to use the default content-download.php template.
version_idDefine a version’s ID to load it instead of the current version.
versionDefine a version to load it instead of the current version.

The template argument in this shortcode uses content templates.

Example

[download id="10" template="image"]
Was this article helpful?
Start Protecting your WordPress Downloads

Protect and track downloads on WordPress... What are you waiting for?