Shortcodes

[wpdm_all_packages] – Display Packages in a Searchable Table

2 min read Updated Mar 17, 2026

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

ParameterTypeDefaultDescription
items_per_pageinteger20Rows per page in the table
thumb0 or 10Show featured image instead of icon
jstable0 or 11Enable DataTables.js functionality
login0 or 10Require login to view the table
category_filtertrue or falsefalseCategory dropdown list

Column Configuration

ParameterTypeDescription
colsstringColumn data fields separated by |. Combine multiple fields in one column with ,
colheadsstringColumn headers separated by |. Add width with :: (e.g., Title::200px)

Filtering

ParameterTypeDescription
categoriesstringCategory slugs, comma-separated
orderbystringSort field: title, date, download_count
orderstringSort direction: ASC or DESC

Available Column Fields

Package Information

FieldDescription
IDPackage ID number
titlePackage title (plain text)
page_linkPackage title as clickable link
descriptionFull package description
excerptShort excerpt (Pro only)
excerpt_80First 80 characters (Pro only)
versionPackage version number

Statistics

FieldDescription
download_countTotal downloads
view_countTotal page views
file_countNumber of attached files
package_sizeTotal file size
quotaDownload limit
download_limit_per_userPer-user download limit

Dates

FieldDescription
publish_dateDate published
update_dateLast modified date

Taxonomy

FieldDescription
categoriesAssigned categories
tagsAssigned tags

Author

FieldDescription
author_nameAuthor display name
author_profile_urlLink to author profile
avatar_urlAuthor avatar image URL
author_picAuthor avatar image
author_package_countNumber of packages by author

Actions

FieldDescription
download_linkDownload button
audio_playerAudio preview player (Pro only)
comment_countNumber 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 category_filter="true" 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 category_filter="true" cols="title,categories|download_count|download_link"]

Related

View Live Demo