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
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| id | integer | Yes | — | The package ID to display |
| template | string | No | Package default | Link template to use for display |
Available Templates
Use these template IDs with the template parameter:
| Template ID | Description |
|---|---|
link-template-default | Simple download button |
link-template-panel | Card-style panel with details |
link-template-extended | Full details with file list |
link-template-bsthumnail | Bootstrap thumbnail card |
link-template-audio | Audio 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
- [wpdm_packages] – Display multiple packages with filtering
- [wpdm_all_packages] – Display packages in a searchable table
- [wpdm_direct_link] – Simple text download link