The [wpdm_all_packages] shortcode displays packages in an interactive DataTable with built-in sorting, searching, and pagination. Perfect for creating searchable download directories or archives.
Basic Syntax
[wpdm_all_packages]
Parameters
Display Options
| Parameter | Type | Default | Description |
|---|
| items_per_page | integer | 20 | Rows per page in the table |
| thumb | 0 or 1 | 0 | Show featured image instead of icon |
| jstable | 0 or 1 | 1 | Enable DataTables.js functionality |
| login | 0 or 1 | 0 | Require login to view the table |
Column Configuration
| Parameter | Type | Description |
|---|
| cols | string | Column data fields separated by |. Combine multiple fields in one column with , |
| colheads | string | Column headers separated by |. Add width with :: (e.g., Title::200px) |
Filtering
| Parameter | Type | Description |
|---|
| categories | string | Category slugs, comma-separated |
| orderby | string | Sort field: title, date, download_count |
| order | string | Sort direction: ASC or DESC |
Available Column Fields
Package Information
| Field | Description |
|---|
ID | Package ID number |
title | Package title (plain text) |
page_link | Package title as clickable link |
description | Full package description |
excerpt | Short excerpt (Pro only) |
excerpt_80 | First 80 characters (Pro only) |
version | Package version number |
Statistics
| Field | Description |
|---|
download_count | Total downloads |
view_count | Total page views |
file_count | Number of attached files |
package_size | Total file size |
quota | Download limit |
download_limit_per_user | Per-user download limit |
Dates
| Field | Description |
|---|
publish_date | Date published |
update_date | Last modified date |
Taxonomy
| Field | Description |
|---|
categories | Assigned categories |
tags | Assigned tags |
Author
| Field | Description |
|---|
author_name | Author display name |
author_profile_url | Link to author profile |
avatar_url | Author avatar image URL |
author_pic | Author avatar image |
author_package_count | Number of packages by author |
Actions
| Field | Description |
|---|
download_link | Download button |
audio_player | Audio preview player (Pro only) |
comment_count | Number of comments |
Usage Examples
Basic Table
[wpdm_all_packages]
Custom Columns
[wpdm_all_packages cols="page_link|categories|download_count|download_link"]
Custom Headers with Width
[wpdm_all_packages
cols="page_link|categories|update_date|download_link"
colheads="Download|Category|Updated::150px|Get It::100px"]
Filter by Category
[wpdm_all_packages categories="software,documents" items_per_page="50"]
Members-Only Table
[wpdm_all_packages login="1" categories="premium"]
Combine Multiple Fields
Show title and categories in the same column:
[wpdm_all_packages cols="title,categories|download_count|download_link"]
Related
View Live Demo