The [wpdm_category] shortcode displays all packages from one or more categories. It’s a convenient alternative to [wpdm_packages categories="..."] when you want to focus on category-based listings.
Basic Syntax
[wpdm_category id="category-slug"]
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| id | string | Yes | — | Category slug or comma-separated slugs |
| items_per_page | integer | No | 10 | Packages per page |
| template | string | No | Default | Link template to use |
| cols | integer | No | 3 | Columns on desktop |
| colspad | integer | No | 2 | Columns on tablet |
| colsphone | integer | No | 1 | Columns on mobile |
| orderby | string | No | date | Sort by: date, title, download_count, rand |
| order | string | No | DESC | Sort direction: ASC or DESC |
| operator | string | No | IN | IN (any) or AND (all categories) |
Usage Examples
Single Category
[wpdm_category id="software"]
Multiple Categories
[wpdm_category id="software,plugins,themes"]
With Pagination
[wpdm_category id="documents" items_per_page="12"]
Grid Layout
[wpdm_category id="photos" cols="4" template="link-template-bsthumnail"]
Most Popular First
[wpdm_category id="freebies" orderby="download_count" order="DESC"]
Related
- [wpdm_packages] – More filtering options including tags and authors
- [wpdm_tag] – Display packages by tag
- [wpdm_all_packages] – Table format display