WPDM Extended Shortcodes
WPDM Extended Shortcodes adds powerful shortcodes to WordPress Download Manager Pro for displaying downloads in creative ways. This documentation covers all available shortcodes and their parameters.
[wpdm_tree] – Interactive File Tree Browser
Display your download categories and packages in an expandable tree structure, similar to a desktop file explorer.
Features
- Hierarchical category navigation
- Smooth expand/collapse animations
- Color-coded file type icons
- Optional expand/collapse all toolbar
- Dark mode support
- Access control integration
Basic Usage
[wpdm_tree]
Parameters
| Parameter | Default | Description |
|---|---|---|
category | (all) | Category slug to display. Leave empty to show all categories. |
download_link | 0 | Set to 1 to show direct download links instead of package page links. |
orderby | modified | Order packages by: title, date, or modified. |
order | desc | Order direction: asc or desc. |
newwin | 0 | Set to 1 to open links in a new tab. |
toolbar | 0 | Set to 1 to show Expand All / Collapse All buttons. |
Examples
[wpdm_tree category="software" orderby="title" order="asc"]
[wpdm_tree toolbar="1" newwin="1"]
[wpdm_tree category="documents" download_link="1"]
[wpdm_stats] – Download Statistics Display
New in v4.0! Showcase your site’s download statistics with beautiful, animated counters.
Features
- 5 statistics: downloads, packages, categories, authors, file size
- 3 display styles: cards, inline, minimal
- Animated count-up effect
- 30-minute caching for performance
- Responsive grid layout
- Dark mode support
Basic Usage
[wpdm_stats]
Parameters
| Parameter | Default | Description |
|---|---|---|
style | cards | Display style: cards, inline, or minimal. |
show | downloads,packages,categories,authors | Comma-separated stats: downloads, packages, categories, authors, size. |
animated | 1 | Set to 0 to disable count-up animation. |
align | center | Alignment: left, center, or right. |
columns | auto | Columns for cards style (2-4). |
Examples
[wpdm_stats style="inline"]
[wpdm_stats style="minimal" align="left"]
[wpdm_stats show="downloads,packages" columns="2"]
[wpdm_stats show="downloads,packages,categories,authors,size"]
[wpdm_activity_feed] – Recent Download Activity
New in v4.0! Display a live feed of recent download activity to create social proof.
Features
- 3 styles: feed, compact, ticker (scrolling)
- User avatars and names
- Relative time display
- Category filtering
- 5-minute caching
- Privacy options
- Dark mode support
Basic Usage
[wpdm_activity_feed]
Parameters
| Parameter | Default | Description |
|---|---|---|
limit | 10 | Number of items to display (max 50). |
style | feed | Display style: feed, compact, or ticker. |
show_avatar | 1 | Set to 0 to hide avatars. |
show_user | 1 | Set to 0 to hide usernames. |
show_time | 1 | Set to 0 to hide time. |
show_file | 0 | Set to 1 to show filename. |
categories | (all) | Filter by category slugs. |
cache | 5 | Cache duration in minutes. |
Examples
[wpdm_activity_feed limit="5" style="compact"]
[wpdm_activity_feed style="ticker"]
[wpdm_activity_feed show_user="0" show_avatar="0"]
[wpdm_activity_feed categories="software,themes" limit="15"]
[wpdm_carousel] – Package Carousel
Display packages in a smooth, animated carousel with touch/swipe support.
Basic Usage
[wpdm_carousel category="software"]
Parameters
| Parameter | Default | Description |
|---|---|---|
category | (required) | Category slug or ID. |
items_per_page | 3 | Visible items on desktop. |
items_total | -1 | Total packages (-1 for all). |
template | link-template-panel | Link template to use. |
autoplay | 0 | Set to 1 for auto-rotation. |
nav | 0 | Set to 1 for prev/next arrows. |
dots | 1 | Set to 0 to hide dots. |
wrap | 1 | Set to 0 to remove card wrapper. |
Examples
[wpdm_carousel category="featured" items_per_page="4" autoplay="1"]
[wpdm_carousel category="themes" nav="1" dots="0"]
[wpdm_slider] – Package Slider
Create a full-width slider featuring specific packages by ID.
Basic Usage
[wpdm_slider ids="1,2,3,4,5"]
Parameters
| Parameter | Default | Description |
|---|---|---|
ids | (required) | Comma-separated package IDs. |
[popup_link] – Modal Popup Template Tag
A template tag for opening packages in a Bootstrap modal popup. Use in custom link templates.
Usage in Templates
<a href="[page_url]" [popup_link]>Quick View</a>
Dark Mode Support
All shortcodes automatically sync with WPDM color scheme settings (Light, Dark, or System). Configure in Downloads → Settings → User Interface.
Requirements
- WordPress 5.0+
- WordPress Download Manager Pro
- PHP 7.4+