With the downloads
shortcode you can display an HTML list of downloads.
Arguments
This shortcode takes the following arguments:
per_page |
How many downloads to show. Defaults to -1 (no limit). |
paginate |
If the list should include pagination. true or false. Default: false. |
orderby |
Order of downloads. title, rand, ID, none, date, modifed, post__in, download_count. Defaults to date. |
order |
Orer direction. ASC or DESC (default). |
include |
Comma separate IDS to include (optional). |
exclude |
Comma separate IDS to exclude (optional). |
offset |
Skip first x downloads. |
category |
Comma separate category slugs to include downloads in any (OR) of given categories. Plus sign (+) separate category slugs to include downloads in all (AND) given categories. |
category_include_children |
Set to false to not include downloads from children categories (used with the category argument above). |
tag |
Comma separate tag slugs to include downloads from those tags only. |
featured |
true or false. Set to true to only pull featured downloads. |
members_only |
true or false. Set to true to only pull member downloads. |
template |
Template used to output the list of downloads. |
loop_start |
HTML to wrap the list. Default: <ul class="dlm-downloads"> |
loop_end |
HTML to wrap the list. Default: </ul> |
before |
HTML to wrap each item. Default: <li> |
after |
HTML to wrap each item. Default: </li> |
The template argument in this shortcode uses content templates
Example
Shows featured downloads in the plugins category.
[downloads featured=true category=plugins]