Title: Category Short-code bug?
Last modified: August 19, 2020

---

# Category Short-code bug?

 *  Resolved [LMP](https://wordpress.org/support/users/loizos16673/)
 * (@loizos16673)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/category-short-code-bug/)
 * I’m testing this plugin and I discovered that some options of the Category Short-
   code do not seem to work.
 * Example:
    `[wpdm_category id="my-audiobook" operator="IN" title="1" desc="1" 
   toolbar="1" order_by="title" order="asc" item_per_page="30" template="link-template-
   audio.php" cols=1 colspad=1 colsphone=1]`
 * In the page, the sorting options and the items per page option are ignored. I
   get default values (sort by date, desc, 10 items per page) instead of the ones
   I specified.
 * Wordpress 5.4.2 with PHP 7.4.9
 * Update: at least I found out why the item per page was not working.
 * In the [example page](https://www.wpdownloadmanager.com/doc/short-codes/) there
   is a syntax error: it states that the parameter is item_per_page. This is wrong.
   It is actually items_per_page.
 * Maybe the other options in the [example page](https://www.wpdownloadmanager.com/doc/short-codes/)
   are wrong as well?
    -  This topic was modified 5 years, 9 months ago by [LMP](https://wordpress.org/support/users/loizos16673/).
      Reason: update

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [LMP](https://wordpress.org/support/users/loizos16673/)
 * (@loizos16673)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/category-short-code-bug/#post-13283566)
 * I figured out that I the google search result sent me to an [older page](https://www.wpdownloadmanager.com/doc/short-codes/).
   The correct syntax for the Category Shortcode [is in this page instead](https://www.wpdownloadmanager.com/doc/short-codes/wpdm_packages-wp_query-in-a-shortcode-for-download-manager-packages/).
 * I think you should update the older page. It creates confusion.
 * I also think that the shortcodes generator creates the older non-functioning 
   shortcodes as well. You should update it.
 *  [ohanspace](https://wordpress.org/support/users/ohanspace/)
 * (@ohanspace)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/category-short-code-bug/#post-13327058)
 * thank you, [wpdm_package id=”package-id-here” template=”template-id”] short code
   is for single package,
    [wpdm_packages] is for multiple packages
 *  [bunkshyde](https://wordpress.org/support/users/bunkshyde/)
 * (@bunkshyde)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/category-short-code-bug/#post-13531187)
 * Thanks for helping with the items_per_page issue.
 * I am however also interested in the second problem reported by LPM above.
 * I have the following code on my page
 * [wpdm_category id=”computers” toolbar=”1″ order_by=”title” order=”asc” items_per_page
   =”999″ cols=1 colspad=1 colsphone=1 template=”link-template-default-ext”]
 * The order_by=”title” AND order=”äsc” are not working when the page is initially
   displayed.
 * EVERY TIME the page is displayed, the initial sort order is Publish_date and 
   Descending. The link to our page is “[https://seniornet.co.nz/teaching-manuals-downloads/computers&#8221](https://seniornet.co.nz/teaching-manuals-downloads/computers&#8221);
    -  This reply was modified 5 years, 8 months ago by [bunkshyde](https://wordpress.org/support/users/bunkshyde/).
    -  This reply was modified 5 years, 8 months ago by [bunkshyde](https://wordpress.org/support/users/bunkshyde/).
 *  [klaggy](https://wordpress.org/support/users/klaggy/)
 * (@klaggy)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/category-short-code-bug/#post-13778184)
 * [@loizos16673](https://wordpress.org/support/users/loizos16673/) Thanks for pointing
   to the correct page, that should definitely be updated in the doc, lots of time
   wasted.
 * I was able to fix everything and also found that the new page has another typo
   for the “orderby” that should be “order_by”, you guys should really correct that.
 * Thanks,

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Category Short-code bug?’ is closed to new replies.

 * ![](https://ps.w.org/download-manager/assets/icon-256x256.png?rev=1561688)
 * [Download Manager](https://wordpress.org/plugins/download-manager/)
 * [Support Threads](https://wordpress.org/support/plugin/download-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/download-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/download-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/download-manager/reviews/)

## Tags

 * [order](https://wordpress.org/support/topic-tag/order/)
 * [order by](https://wordpress.org/support/topic-tag/order-by/)

 * 4 replies
 * 4 participants
 * Last reply from: [klaggy](https://wordpress.org/support/users/klaggy/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/category-short-code-bug/#post-13778184)
 * Status: resolved