Use tinymce button add-on to generate short-code
Single Package Short-code:

Default Package Short-code:

[wpdm_package id="package-id-here"]

Package Short-code With link template specified:

[wpdm_package id="package-id-here" template="template-id"]

All link template file names:

  • link-template-default
  • link-template-panel
  • link-template-extended
  • link-template-semi-ext
  • link-template-bsthumnail
  • link-template-audio

All page template file names:

  • page-template-default
  • page-template-1col
  • page-template-1col-ex-autdio
  • page-template-1col-flat
  • page-template-col2-il
  • page-template-1col-ex

If no template parameter used with short-code, it will user the selected link template when you created the package. “template” parameter is just useful if you want to show same package with different link template at different places.

Extended Short-codes
Please download and install Extended Short-code Add-on

Short-code for Image Slider:

[wpdm_slider ids="package,ids,separated,by,comma"]

Short-code for category carousel:

[wpdm_carousel category="category-id"]

Short-code for generating tree view of all packages and categories:

[wpdm_tree]

Short-code for generating tree view of specific category:

[wpdm_tree category="category-slug"]

And if you want to use direct download link, use:

[wpdm_tree download_link=1]
Category Short-code

Category short-code will all parameters:

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

Parameters:

  • id: the category slug, it is a  required parameter, in case of multiple category slugs should be separated by comma
  • operator: Use this parameter only when you are using multiple categories. Possible values are ‘IN’, ‘NOT IN’, ‘AND’, ‘EXISTS’ and ‘NOT EXISTS’. Default value is ‘IN’.
  • title: optional, 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: optional, 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 category description
  • item_per_page: use any numeric value but greater then o, it is a  required parameter
  • order_by: field name to sort packages, you can sort by title, download_count, create_date, update_date or id , its a optional parameter, if you skip this parameter “id” will be taken as default.
  • order: asc or desc, optional parameter
  • template: same as explained for package short-code
  • toolbar: 1 for showing toolbar with category title and sorting option while showing short-code output and 0 will hide the tools
  • cols: number of columns for desktop/laptop layout, value range 1 ~ 4
  • colspad: number of columns for pad layout, value range 1 ~ 4
  • colsphone: number of columns for phone layout, value range 1 ~ 4
Tag Short-code

Category short-code will all parameters:

[wpdm_tag id="Tag Slug(s)" title="Custom Title Here or 1" desc="Custom Dscription or 1" toolbar="1" order_by="field name" order="asc or desc" item_per_page="10" template="temaplte name or ID" cols=4 colspad=2 colsphone=1]

Parameters:

  • id: the tag slug, it is a required parameter, in case of multiple tag slugs should be separated by comma
  • title: optional, you can use any text there, if you use “1″ then it will show the tag title, otherwise will show the custom text string, if you skip that parameter will not show category title
  • desc: optional, you can use any text there, if you use “1″ then it will show the tag description, otherwise will show the custom text string, if you skip that parameter will not show tag description
  • item_per_page: use any numeric value but greater then o, it is a required parameter
  • order_by: field name to sort packages, you can sort by title, download_count, create_date, update_date or id , its a optional parameter, if you skip this parameter “id” will be taken as default.
  • order: asc or desc, optional parameter
  • template: same as explained for package short-code
  • toolbar: 1 for showing toolbar with tag title and sorting option while showing short-code output and 0 will hide the tools
  • cols: number of columns for desktop/laptop layout, value range 1 ~ 4
  • colspad: number of columns for pad layout, value range 1 ~ 4
  • colsphone: number of columns for phone layout, value range 1 ~ 4
Data Table
Please download ans install Extended Short-code add-on to activate this short-code
Short-code to list All Packages in a tabular format with sorting and searching options:

[wpdm-all-packages items_per_page="20" categories="slug1,slug2,..." jstable=1 order_by="field_name" order="ASC/DESC"]

Parameters:

  • items_per_page: Items to show per page
  • categories: use the parameter if you want to show the table for specific category or categories
  • order_by: field name ( title | date )
  • order: ASC or DESC
  • jstable: Enable disable datatable.js

and the front-end preview for the short-code is here

USer Dashboard

Short-code for wpdm user dashboard:

[wpdm_user_dashboard]

and the preview for the short-code is here

Front-end Uploader UI

Short-code for wpdm front-end uploader and members area:

[wpdm_frontend]

and the front-end preview for the short-code is here

 

More Shortcodes:

Last Updated: Jun 15, 2017


Discussion

  • blindbrain

    Hi,
    I am just starting – so sorry if the solution is obvious 🙂

    all the short codes I tested do work – but not [wpdm_frontend].
    Nothing shows up. No short code – no Frontend.

    Do I have to activated that somewhere?
    thanks

  • twomuch

    Hi,
    sorry i have version 4.0.7 so i dont have the frontend option in my settings. How do i make it work?
    I have pasted the wpdm_frontend shortcode but it work work.

  • flyingfox

    Hi Shaon,
    the frontend of the extended-shortcode looks not like in your example. Please help, all is in courier and looks bad. thanks

    • Shaon

      it is because while you copy/paste the short-code, probably there also some unnecessary html tag copied, so simply delete the short-code and wrtie it again.

  • CHUH

    Is there a way to order the tree view documents (under a folder) alphabetically?

  • CHUH

    I’m using wpdm_tree and wpdm-all_packages on a page.

    They both work. The all packages hides any documents that the user doesn’t have permissions to (using PP), but everything shows up on the document tree. Is there a way to hide items that the user can’t access in the tree?

  • akaadan

    Hi Shaon,

    First of all, thank you for such a great plugin. I don’t think you get enough appreciation for your work so I wanted to thank you personally.

    I love the Jtable feature in the ‘all-packages’ call, however when I attempt to initialize the table in a specific order, lets say “sort by create_date desc”, it doesn’t seem to work for me, it always defaults to title asc.

    I basically had to add “order”: [[ 0, “” ]] to the table initialization in the wpdm-all-downloads.php to get it to work. Obviously this isn’t good because the column id is hard-coded into the table. Anyways I just wanted to let you know, it might just not be working for me only?

    • Shahriar

      You’re very welcome :), when you use parameter `jstable=1` with short-code, it actually ignore sorting parameter with short-code. If you don’t use`jstable=1`, default sorting will work fine. However, if you need to change template file, please copy `tpls` dir to active theme dir and name it to `download-manager` so that updating plugin would not affect your changes.

  • ntjedge

    Hello,

    Great plugin!

    I am using the free version and trying out the Data Table Shortcode and its awesome. I have two issues that needs addressing.

    1) My Table using Data Table shortcode is not responsive like your preview. Is it supposed to be like that in the free version?

    2) How do I edit the Data Table template? I do not want the “categories” column and the link to the individual package page. I just want the title to come up without the link. Which file should I be checking?

    Thank you so much for the lovely plugin once again!

    • Shahriar

      Extremely Sorry, table is responsive only in pro version.
      To edit table template file, please copy “tpls” dir in your active theme dir and rename it to “download-manager”, then edit “wpdm-all-downloads.php” , in this way, updating plugin will not affect your changes.

  • STL82

    Is there any way to change “Create Date” to “Last Updated” in the Data Tables?

    • Shahriar

      Go to download-manager/tpls/wpdm-all-downloads.php and find ‘Create Date’ and change it to ‘Last Updated’. But keep in mind this change will be gone after updating plugin next time. So have to do it again.

      • STL82

        Thanks for the quick reply. That changes the header but how do I get the files in the table to show the Last Updated date? I’d love to use this feature on a page so my users can see when my files were last updated.

        BTW, I’ve been with you guys for awhile now. Love where your product has gone. My whole site exists because of this plugin!

  • nemuelcruz

    Hello guys, so I have an issue and I cannot figure it out.
    I am using this shortcode;

    [wpdm-all-packages items_per_page=”20″ categories=’agendas,2015′ jstable=1 order_by=”field_name” order=”ASC/DESC”]

    I have documents in a Category called Agendas, but within a 2015 Subcategory.
    I need to show the table only for Agendas, 2015. How can I use that shortcode?

    Thanks

  • Seeber

    Hello Shaon,

    Thanks for making a fantastic plugin- it does almost exactly what I want it to do. I do have two questions, though

    1- Is there any way to use the featured image as the icon instead of the standard ones provided?

    2- I have discounts set up for subscribers, authors, contributors, admins of my website. The discounts work fine, but the label indicating that they will be applied is getting cut off at the initial splash page. Once the customer clicks through it shows up fine. Is there any way I can either a) show the entire discount or b) delete it completely?

    Here is the shortcode I am using:

    [wpdm_category id=”ebooks” operator=”IN” title=”1″ desc=”1″ toolbar=”0″ order_by=”field name” order=”desc” item_per_page=”10″ cols=3 colspad=2 colsphone=1]

    Thank you for all your help!

  • ravenswood

    Hi Shaon,

    From WP Admin, how can an administrator find a package using the shortcode as a reference?

    They will have thousands of packages, and once the shortcode is placed in a page/post, there is no way of knowing what package that shortcode relates to.

    Using the shortcode in the WP search box in WPDM admin area does not work.

    (using a browser text search with Ctrl + F only works if the shortcode is on that page, and we will have 100+ pages of packages)

    Thanks

  • Ben

    Hi Is there a short code to add in the file count ?

    found this code in the template that displays file count
    I would like to display the file count in a custom link template. i’ve tried using the above but nothing pulls through and i was wondering how i can create a short code to pull through the file count into a package link template?

    Thanks

  • Mira

    Hi There,

    I have created categories, I want to display only categories name not file. when I someone click on category, all sub categories are open and then all files are open. How to write a code for it?

  • martaserrano

    Hi, is there any shortcode to add a search option, so you can enter a word and you see if there is any package containing that words?
    Thanks

  • Abraham Jimenez

    Hi. Is there a parameter for the short-code [wpdm_tree], to hide some categories and show some ones and show them in folders?… I tried the Category parameter, but it don’t shows them in folders just list the files… Thank you so much

  • Poshnjari

    Hi, I can use shortcodes without install TinyMCE button or WPDM Extended Short-codes?
    I need use shortcodes in header.php or in single.php I have test it but isn’t work.

  • Mirza Celikovic

    Hey guys, thanks for such good plugin and support that you provide.

    I have a question. Is it possible to open pdf files from [wpdm_tree] in new tab?

  • Brown Ink

    I am using this short code [list-downloads], how can I add pagination to that?
    I want to list only 30 per page.

  • Agrargemeinschaft

    I have installed both plugins (tinyMCE Button and Extendet short-codes) and added the following line to a blank page using the short-code button of the TinyMCE plugine: [wpdm_tree category=”allfiles” download_link=1].

    When I open the page, no files are shown. If I use [wpdm_category … ] to show the files, it works.

  • David Debono

    Hello, Im using short code: [wpdm-archive button_style=”inverse” link_template=”58dcd1ea60918″ order_by=”post_title” order=”asc” items_per_page=”10″ cat_view=”compact”] Can the “order by”, add extra fields to sort by?

    What about if when they are uploading the document, they tag by author etc? Please advise!

Leave a Reply