Shortcodes

[wpdm_package] – Display a Single Download Package

2 min read Updated Jan 26, 2026

The [wpdm_package] shortcode displays a single download package anywhere on your site. Use it to embed downloads in posts, pages, or widgets with full template support.

Basic Syntax

[wpdm_package id="123"]

Replace 123 with your package ID. You can find the ID in the package list or in the URL when editing a package.

Parameters

ParameterTypeRequiredDefaultDescription
idintegerYesThe package ID to display
templatestringNoPackage defaultLink template to use for display

Available Templates

Use these template IDs with the template parameter:

Template IDDescription
link-template-defaultSimple download button
link-template-panelCard-style panel with details
link-template-extendedFull details with file list
link-template-bsthumnailBootstrap thumbnail card
link-template-audioAudio player template

Usage Examples

Basic Package Display

[wpdm_package id="42"]

With Custom Template

[wpdm_package id="42" template="link-template-panel"]

Multiple Packages

Display several packages with different templates:

[wpdm_package id="10" template="link-template-default"]
[wpdm_package id="20" template="link-template-panel"]
[wpdm_package id="30" template="link-template-extended"]

Tips

  • If no template is specified, the shortcode uses the template selected when creating the package.
  • Use the Gutenberg Blocks add-on for a visual way to insert packages without writing shortcodes.
  • The package must be published and accessible to the current user for it to display.

Related

View Live Demo