CM Download (CMDM) - Shortcodes - List of Files from a Category

Shortcodes - Quick List of Files video tutorial

Back to User Guides

Shortcodes - List of Files from a Category

Shortcode: [cmdm-files-list]

The parameters for this shortcode are (all optional):

Query parameters:

User Interface parameters:

  • category - show only document from one or more categories. Enter category's term_id or slug.
    • [cmdm-files-list category=123] - using one category's term_id
    • [cmdm-files-list category=important-documents,sensitive_images] - using categories' slug
  • tags - filter documents by tags.
    • [cmdm-files-list tags="tag-1"] - using single tag
    • [cmdm-files-list tags="one,two,three"] - using multiple tags
  • author - show only documents of the specific user.
    • [cmdm-files-list author=123] - using user's ID
    • [cmdm-files-list author=john] - using user's nice name
  • query- search for a specific text in the documents' title or description.
    • [cmdm-files-list query="health care"]
  • sort - sort documents by:
    • post_title- post title ascending
    • post_title_desc - post title descending
    • menu_order - menu order field
    • downloads - downloads number
    • views - views number
    • rating - rating
    • newest - order by post_date field descending
    • post_modified - order by post_modified field descending
    • Example: [cmdm-files-list sort=rating]
  • >limits - limit the results.
    • [cmdm-files-list limit=10]
  • page - display the specific pagination page.
  • urlfilter - enable URL filtering. You can add an additional query conditions from the URL query search parameters.
    • [cmdm-files-list urlfilter=0] - disable URL filtering (default)
    • [cmdm-files-list urlfilter=1] - enable URL filtering

    Available URL query parameters: cmdmfl_cat, cmdmfl_tag, cmdmfl_search

    • (your-website)/files-list/?cmdmfl_cat=category-slug&cmdmfl_tag=some-tag&cmdmfl_search=search+for+text

User Interface parameters

  • view - display documents in a specific view.
    • [cmdm-files-list view=list] - documents displayed as a simple list (default)
    • [cmdm-files-list view=categories] - documents arranged by linear categories list
    • [cmdm-files-list view=tree] - documents arranged by tree of categories
  • recursive - obtain documents from the categories and its subcategories recursively (works only when using the categories or tree view).
    • [cmdm-files-list recursive=0] - don't use recursion (default)
    • [cmdm-files-list recursive=1] - use recursion
  • search - enable or disable the documents' AJAX-based search engine field (search results will be requested from the server).
    • [cmdm-files-list search=0] - search field not shown
    • [cmdm-files-list search=1] - search field is visible
  • filter - enable or disable the documents' filter field. Filtered documents will be not requested from the server which may increase the performance, but user can filter only from the documents that has been already displayed in the web browser so it doesn't search through the pagination.
    • [cmdm-files-list filter=0]</span> - filter not shown</li> <li><code>[cmdm-files-list filter=1] - filter is visible
  • categoryfilter - enable or disable filtering documents by category.
    • [cmdm-files-list categoryfilter=0] - category filter not shown
    • [cmdm-files-list categoryfilter=1] - category filter visible
  • tagsfilter - enable or disable filtering documents by tags.
    • [cmdm-files-list tagsfilter=0] - tags filter not shown
    • [cmdm-files-list tagsfilter=1] - tags filter visible
  • userfilter - enable or disable filtering documents by its author.
    • [cmdm-files-list userfilter=0] - user filter not shown
    • [cmdm-files-list userfilter=1] - user filter visible
  • usercontrols - enable or disable user's buttons as "Edit" or "Delete".
    • [cmdm-files-list usercontrols=0] - user controls not shown
    • [cmdm-files-list usercontrols=1]- user controls visible
  • toggletree - enable or disable the categories collapsing mode (works only for view=tree).
    • [cmdm-files-list toggletree=0] - user won't be able to collapse the categories
    • [cmdm-files-list toggletree=1] - user will be able to collapse the categories
  • upload - display the upload button.
    • [cmdm-files-list upload=0] - upload button not shown (default)
    • [cmdm-files-list upload=1] - upload button is visible
  • permalink - make the document's title a permalink to its page.
    • [cmdm-files-list permalink=0] - title is not a permalink (default)
    • [cmdm-files-list permalink=1] - title is a permalink
  • scroll - scroll down the browser window to the documents' list after each filtering.
    • [cmdm-files-list scroll=0] - don't scroll
    • [cmdm-files-list scroll=1] - enable scrolling (default)
  • showauthor - display the document's author.
    • [cmdm-files-list showauthor=0] - hide author
    • [cmdm-files-list showauthor=1] - show author
  • showdate - display the document's publish date (default: 0).
    • [cmdm-files-list showdate=1] - show date
    • [cmdm-files-list showdate=0] - hide date (default)
  • emptycategories - display the empty categories (works in the categories or tree view).
    • [cmdm-files-list emptycategories=0] - hide empty categories
    • [cmdm-files-list emptycategories=1] - show empty categories
  • details - display the document's details.
    • [cmdm-files-list details=0] - don't display details
    • [cmdm-files-list details=1] - view details (default)

More information about the CM Download Manager WordPress Plugin

Other WordPress products can be found at CreativeMinds WordPress Store

Let us know how we can Improve this Product Documentation Page

To open a Support Ticket visit our support center