WordPress Download Manager Template Tags and their detailed usage. Use 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


[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" />

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 800×500 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 800×500 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 50×50 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 800×500 image thumbnail of first page from attached pdf file


[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 comeplete download link HTML. When Package is locked, this tag will show lock options in a popover. If 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 comeplete download link HTML. When 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 comeplete download link HTML. When 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


[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 individual download is not enabled, user will see only file list without play button


[audio_player]

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

[audio_player]

[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


Last Updated: Sep 14, 2017


Discussion

Leave a Reply