Title: WordPress 6.0 shortcode [wpdm_category] is broken
Last modified: May 27, 2022

---

# WordPress 6.0 shortcode [wpdm_category] is broken

 *  Resolved [ahpcservices](https://wordpress.org/support/users/ahpcservices/)
 * (@ahpcservices)
 * [4 years ago](https://wordpress.org/support/topic/wordpress-6-0-shortcode-wpdm_category-is-broken/)
 * Hello,
 * After upgrading to WordPress 6.0, the shortcode `[wpdm_category]` began having
   big issues on all the pages where I use it.
 * It only shows one download on first row, at a random position (seemingly depending
   on shown category).
 * Using PHP 8.0
    Wordpress 6.0 Shortcode sample : `[wpdm_category id="logos" title
   ="1" desc="1" toolbar="1" paging="0" items_per_page="9999" template="link-template-
   bsthumnail" cols=4 colspad=2 colsphone=1]`
 * Fiddling with the shortcode attributes, or the displayed category never solved
   this.
    Only rolling back to WordPress 5.97 solved the display problems.

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

 *  Thread Starter [ahpcservices](https://wordpress.org/support/users/ahpcservices/)
 * (@ahpcservices)
 * [4 years ago](https://wordpress.org/support/topic/wordpress-6-0-shortcode-wpdm_category-is-broken/#post-15684501)
 * I forgot: Download Manager Version 3.2.41
 *  [BSF – Humayon Kabir](https://wordpress.org/support/users/humayonk/)
 * (@humayonk)
 * [4 years ago](https://wordpress.org/support/topic/wordpress-6-0-shortcode-wpdm_category-is-broken/#post-15685226)
 * Hi [@ahpcservices](https://wordpress.org/support/users/ahpcservices/)
 * Greetings and Welcome to the support forum.
 * I have tested your provided shortcode with `WordPress 6.0` in our test environment,
   and it appears that the shortcode is working fine.
 * Please have a look at this [reference screencast](https://www.loom.com/share/2dbe6cffb3bd480c8de2cc0e862c1548).
 * There can be a conflict with another third-party plugin. Can you please enable/
   disable other plugins for checking?
 * You may also switch the theme to another default WordPress theme, `Twenty Twenty-
   One` for checking.
 * Feel free to reach back and report your findings.
 * Best Regards
 *  Thread Starter [ahpcservices](https://wordpress.org/support/users/ahpcservices/)
 * (@ahpcservices)
 * [4 years ago](https://wordpress.org/support/topic/wordpress-6-0-shortcode-wpdm_category-is-broken/#post-15685740)
 * Hello [@humayonk](https://wordpress.org/support/users/humayonk/)
 * Thanks for taking the time to help me.
 * After investigating a little more, it seems that the problem is less serious 
   and a little more subtle than I thought.
 * Actually, it’s not that some downloads are not shown, but that they’re inaccessible
   for download to administrators (my theme is hiding all downloads that are not
   available to the current user).
 * There is still a bug, where one of them (not always the same one) is still accessible
   whereas all or none should be.
 * It goes as follows:
    – Each of my downloads is explicitly made available to some
   user roles (via the “authorize access” box) – In WordPress **5**, administrators
   seem to have implicit access to all downloads (they’re considered to have all
   roles I suppose) – In WordPress **6**, it seems they don’t – But using the `[
   wpdm_category]` shortcode, admins always retain access to one of the displayed
   download posts (not always the first one) – If I explicitly add one of the authorized
   roles to an admin, then they have access to the downloads authorized to this 
   role, plus a random one that is not
 * So I have a temporary workaround by adding to all my admin accounts, all the 
   roles that I’m using to setup download authorizations.
 *  [BSF – Humayon Kabir](https://wordpress.org/support/users/humayonk/)
 * (@humayonk)
 * [4 years ago](https://wordpress.org/support/topic/wordpress-6-0-shortcode-wpdm_category-is-broken/#post-15687057)
 * Hi [@ahpcservices](https://wordpress.org/support/users/ahpcservices/)
 * Thank you for your reply.
 * To understand the scenario better, it will be very cooperative if you record 
   me reproducing your issue using a tool like [this](https://www.loom.com/)?
 * It helps me to figure out the issue quickly and squash it immediately.
 * Thank you
 *  Thread Starter [ahpcservices](https://wordpress.org/support/users/ahpcservices/)
 * (@ahpcservices)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/wordpress-6-0-shortcode-wpdm_category-is-broken/#post-15692233)
 * HI [@humayonk](https://wordpress.org/support/users/humayonk/)
 * While setting up a test environment to capture you a screencast, I discovered
   that the problem seems to come from the WPML plugin.
 * So I’ll be investigating on that side…
 * Thanks a lot.
 *  [BSF – Humayon Kabir](https://wordpress.org/support/users/humayonk/)
 * (@humayonk)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/wordpress-6-0-shortcode-wpdm_category-is-broken/#post-15692523)
 * Hello [@ahpcservices](https://wordpress.org/support/users/ahpcservices/)
 * Glad to hear that you found the root cause.
 * Feel free to reach back and report your findings.
 * Have a good day.

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

The topic ‘WordPress 6.0 shortcode [wpdm_category] is broken’ 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

 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)
 * [wpdm](https://wordpress.org/support/topic-tag/wpdm/)

 * 6 replies
 * 2 participants
 * Last reply from: [BSF – Humayon Kabir](https://wordpress.org/support/users/humayonk/)
 * Last activity: [3 years, 12 months ago](https://wordpress.org/support/topic/wordpress-6-0-shortcode-wpdm_category-is-broken/#post-15692523)
 * Status: resolved