Main Menu
Sub Menu

Template Tags

WordPress Download Manager Template Tags and their detailed usage. Use the following template tags to show all available data from a package/product.

[page_url]

Returns Post/Package Details Page URL
Usage: 

<a href="[page_url]">Any Text Here</a>

The example above will link the text `Any Text Here` with package details page


[page_url_qr]

Returns QR code Post/Package Details Page URL
Usage:

[page_url_qr]

[title]

Returns Package Title
Usage:

<a href="[page_url]">[title]</a>

The example above will generate a linked title


[page_link]

Returns Package Title Linked in Package Details Page
Usage:

[page_link]

which is equivalent to:

<a href="[page_url]">[title]</a>

The example above will generate a linked title


[icon]

Returns Selected Package Icon
Usage: 

<a href="[page_url]">[icon]</a>

The example above will link icon with package details page URL


[preview]

Returns Full Size Featured Image URL If Available
Usage: 

<img src="[preview]" alt="[preview_alt]" title="[preview_title]" />

The example above will show full size featured image if available


[thumb_WxH]

Shows Featured Image Thumbnail With Specified Width ( W ) and Height (H) If Available
Usage:

[thumb_800x500]

The example above will show 800x500 featured image thumbnail ( will generate complete html for showing the image thumbnail )


[thumb_url_WxH]

Returns Feature Image Thumbnail URL With Specified Width ( W ) and Height (H) If Available
Usage:

<img src="[thumb_url_800x500]" alt="[title] Image" class="thumbnail another-css-class"  />

The example above will show 800x500 featured image thumbnail


[thumb_gallery_WxH]

Returns All Attached Additional Image Thumbnails With Specified Width ( W ) and Height (H) If Available, Every Thumbnail is Linked With Original Image
Usage:

[thumb_gallery_50x50]

The example above will show 50x50 image thumbnails for all additional preview images attached with the package


[pdf_thumb_WxH]

Shows Image Thumbnail From Attached PDF File With Specified Width ( W ) and Height (H)
Usage:

[pdf_thumb_800x500]

The example above will show 800x500 image thumbnail of first page from attached pdf file


[product_preview_WxH]

Shows preview of the attached file ( mp3, mpeg, image, pdf )
Usage:

[product_preview_800x400]

The example above will show 800x500 preview of the attached item


[excerpt_N]

Returns Package Excerpt of N chars
Usage:

[excerpt_100]

The example above will show the 100 chars excerpt


[description]

Returns Package Description
Usage:

[description]

The example above will show full package description ( post content )


[download_count]

Returns Package Download Count
Usage:

[download_count] download(s)

The example above will show total downloads of a package


[view_count]

Returns Package View Count
Usage:

[view_count] view(s)

The example above will show total view count of a package


[download_url]

Returns Package Download URL
Usage:

<a href="[download_ur]" class="btn btn-info">Download Now!</a>

The example above will generate download link, This only will work for public downloads where no lock option applied


[download_link]

Returns Package Download Link HTML
Usage:

[download_link]

The example above will generate complete download link HTML. When the Package is locked, this tag will show lock options in a popover. If the premium package is active and package has a price, the download link will be converted to add to cart form automatically. Equivalent php code is:

<?php echo \WPDM\Package::downloadLink($ID); ?>

[download_link_extended]

Returns Package Download Link HTML
Usage:

[download_link_extended]

The example above will generate complete download link HTML. When the Package is locked, this tag will embed lock options in the page. Equivalent php code is:

<?php echo \WPDM\Package::downloadLink($ID, 1); ?>

[download_link_popup]

Returns Package Download Link HTML
Usage:

[download_link_popup]

The example above will generate complete download link HTML. When the Package is locked, this tag will show lock options in a modal popup. Equivalent php code is:

<?php echo \WPDM\Package::downloadLink($ID, 0, array('popstyle' => 'popup')); ?>

[quota]

Returns Remaining Number of Download Limit, After That Times of Download, It Will Show Download Limit Expired Notice
Usage:

[quota]

[file_list]

Returns Attached File List With The Package
Usage:

[file_list]

The example above will generate the list ( table ) of attached files with a package, if individual download enabled, user will see a download button after each row and if file is playable ( ex: mp3 ), there also will be a play button


[file_list_extended]

Returns Attached Files List In a Thumbnail Gallery Format
Usage:

[file_list_extended]

The example above will generate the list ( panel/box ) of attached files with a package, user will see file size and a thumbnail if attached file in an image, otherwise file type icon, if individual download enabled, user will see a download button after each box


[file_list_extended_WxHxC]

Returns Attached Files List In a Thumbnail Gallery Format
Usage:

[file_list_extended_512x512x4]

It is same as file list extended tag with thumbnail Width x Height x Columns specified. For example, [file_list_extended_512x512x4] will generate 4 columns grid with 512 x 512 thumbnail size.


[play_list]

Returns Attached File List With Play Button, Individual Download Must Be Enabled
Usage:

[play_list]

The example above will generate the list ( table ) of attached files with play button with each row when file is playable ( ex: mp3 ), if the individual download option is not enabled, the user will see only file list without a play button


[audio_player]

Returns Single Play Button using First Playable File From Attached Files
Usage:

[audio_player]

[video_player_WxH]

Render video player from attached video file or URL. Supports selft hosted MP4 file, YouTube, Vimeo, Wistia
Usage:

[video_player_800x500]

[file_types]

Returns Attached File Types With The Package
Usage:

[file_types]

The example above will show the file extension ( like: pdf,png... ) of attached files with a package.


[file_type_icons]

Returns Attached File Types With The Package
Usage:

[file_type_icons]

The example above will show the file type icons ( like:  ) of attached files with a package.


 [version]

Returns The Value of Version Field
Usage:

[version]

[create_date]

Returns The Publish Date of a Package
Usage:

[create_date]

[update_date]

Returns The Update Date of a Package
Usage:

[update_date]

[author_name]

Returns Package Author Display Name
Usage:

[author_name]

[author_profile_url]

Returns Package Author Profile Page URL
Usage:

[author_profile_url]

[avatar_url]

Returns Package Author Avatar URL
Usage:

<img src="[avatar_url]" alt="[author_name]" />

[version]

Returns The Value of Version Field
Usage:

[version]

[tags]

Returns Linked Package Tags
Usage:

[tags]

[categories]

Returns Linked Categories of a Packages
Usage:

[categories]

[link_label]

Returns Link Label of a Package
Usage:

<a href="[download_url]">[link_label]</a>

The example above will show the link label ( linked with download url ) of a package


[package_size]

Returns The Package Size ( Total Size of All Attached Files ) Of A Package
Usage:

[package_size]

[fav_button]

Shows add to favorite button ( icon + text )
Usage:

[fav_button]

[fav_button_sm]

Shows smaller size add to favorite button ( icon + text )
Usage:

[fav_button_sm]

[fav_button_ico]

Shows standard size add to favorite button only using icon
Usage:

[fav_button_ico]

[fav_button_ico_sm]

Shows smaller size add to favorite button only using icon
Usage:

[fav_button_ico_sm]

[youtube_thumb_X]

Returns YouTube Video Thumbnail From Attached YouTube URL, replace `X` with 0 or 1 or 2 or 3
Usage:

[youtube_thumb_0]

[youtube_player]

Returns YouTube Player From Attached YouTube URL
Usage:

[youtube_player]

[addtocart_url]

Returns add to cart url
Usage:

<a href="[addtocart_url]">Add To Cart</a>

The example above will show add to cart link for a package


[addtocart_link]

Returns add to cart link
Usage:

[addtocart_link]

The example above will show add to cart link for a package


[addtocart_form]

Returns add to cart form
Usage:

[addtocart_form]

The example above will show add to cart form for a package


[customer_download_link]

Returns customer download link. If you need to tag with add to cart form/link tag, user to already purchased the item, will the a direct download link along with add to cart option, so that he can download or buy again.
Usage:

[customer_download_link]

[base_price]

Returns base price for a package
Usage:

[base_price]

[sales_price]

Returns sales price for a package
Usage:

[sales_price]

[currency]

Returns currency sybmol
Usage:

[currency][base_price]

The example will show the base price with currency symbol


[free_download_btn]

Returns download button for free file for a package with price. Sometime with your premium version, you may have a free version too. In such case you can attach the free file with free download section and use the template tag to allow users to download it for free.
Usage:

[free_download_btn]

[free_download_url]

Returns download url for free file for a package with price.
Usage:

<a href="[free_download_url]" class="btn btn-success">Download it free</a>

Last updated on Nov 30, 2022

Need More Clarification?

For any technical issue, if you are already using pro version please post in pro forum and free version users please post in free forum. Otherwise, if you have any pre-sale or order related query please contact live chat support team. For technical support.

Need Customization?

If you need additional customization on WordPress Download Manager or any type of custom support on WordPress you may contact our customization service.