This Short-code will list All Packages/Downloads in 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" cols="title,file_count,download_count|categories|update_date|download_link" colheads="Title|Categories|Update Date|Download::155px"]

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
  • cols: data field name for each column, column separator |, if you want to show multiple data fields in the same column, data field names should be separated by ,
  • colheads: column heading, headings are separated by |. Ex: colheads="Title|Categories|Update Date|Download", now if you want to specify width for a colum, add the width after column head with :: seperator. Ex: colheads="Title|Categories|Update Date::200px|Download::100px" will make Update Date column width 200px and Download column width 100px (Note: column width is only support by pro version )

Valid Data Field Names:

  • page_link
  • title
  • categories
  • download_count
  • view_count
  • file_count
  • version
  • quota
  • download_limit_per_user
  • package_size
  • publish_date
  • update_date
  • excerpt  ( supported only in pro versions )
  • excerpt_X  ( supported only in pro versions )
  • audio_player  ( supported only in pro versions )

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

Live Demo

Last Updated: Feb 22, 2018


Discussion

Leave a Reply