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:

NameTypeRequiredDefaultDescription
idTEXTYesNoneThe category slug(s), it is a required parameter, in case of multiple category slugs should be separated by a comma
operatorTEXTNoINUse 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’
titleTEXTNoCategory NameYou 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
descTEXTNoCategory DescYou 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_pageINTYes10Use any numeric value but greater than 0
order_byTEXTNoidField 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.
orderTEXTNodescUse asc or desc, optional parameter
templateTEXTNolink-default-defaultUse link template ID here
toolbarTEXTNo11 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
pagingINTNo10 if you want to hide pagination
colsINTNo1Number of columns for desktop/laptop layout, value range 1 ~ 4
colspadINTNo1Number of columns for pad/tab layout, value range 1 ~ 4
colsphoneINTNo1Number of columns for phone layout, value range 1 ~ 4

Live Demo

Last Updated: Mar 3, 2018


Discussion

Leave a Reply