Use this shortcode you can query all downloads/packages from one or more categories.

Category short-code will all parameters:

[wpdm_category id="Category Slug(s)" operator="IN" title="Custom Title Here or 1" desc="Custom Description or 1" toolbar="1" paging="1" order_by="field name" order="asc or desc" items_per_page="10" template="template name or ID" cols=4 colspad=2 colsphone=1]

Parameters:

Name Type Required Default Description
id TEXT Yes None The category slug(s), it is a required parameter, in case of multiple category slugs should be separated by a comma
operator TEXT No IN Use this parameter only when you are using multiple categories. Possible values are ‘IN’, ‘NOT IN’, ‘AND’, ‘EXISTS’ and ‘NOT EXISTS’. The default value is ‘IN’
title TEXT No Category Name You can use any text there, if you use “1” then it will show the category title, otherwise will show the custom text string, if you skip that parameter will not show category title
desc TEXT No Category Desc You can use any text there, if you use “1” then it will show the category description, otherwise will show the custom text string, if you skip that parameter will not show the category description
items_per_page INT Yes 10 Use any numeric value but greater than 0
order_by TEXT No id Field name to sort packages, you can sort by title, download_count, create_date, modified ( update date ) or id, it’s an optional parameter, if you skip this parameter “id” will be taken as default.
order TEXT No desc Use asc or desc, optional parameter
template TEXT No link-default-default Use link template ID here
toolbar TEXT No 1 1 for showing toolbar with category title and sorting option while showing short-code output and 0 will hide the toolbar and “compact” for slim toolbar
paging INT No 1 0 if you want to hide pagination
cols INT No 1 Number of columns for desktop/laptop layout, value range 1 ~ 4
colspad INT No 1 Number of columns for pad/tab layout, value range 1 ~ 4
colsphone INT No 1 Number of columns for phone layout, value range 1 ~ 4

Live Demo

Last Updated: Mar 3, 2018


Leave a Reply