Title: Shortcode broken
Last modified: August 31, 2016

---

# Shortcode broken

 *  [mamuran](https://wordpress.org/support/users/mamuran/)
 * (@mamuran)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/shortcode-broken-3/)
 * The shortcode to display our table of documents appears to not be working – it
   just shows up on the page as “[wpdm-all-packages jstable=1]” instead of showing
   the table of documents. We’re running the correct php version so that shouldn’t
   be the issue.
 * Here is the error we’re getting:
 * [27-Jan-2016 18:55:11 UTC] PHP Warning: Invalid argument supplied for foreach()
   in …/plugins/download-manager/functions.php on line 2444
 * Thoughts on how to fix this?
 * [https://wordpress.org/plugins/download-manager/](https://wordpress.org/plugins/download-manager/)

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

 *  Thread Starter [mamuran](https://wordpress.org/support/users/mamuran/)
 * (@mamuran)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/shortcode-broken-3/#post-7000759)
 * This might be due to the WPDM Archive Page setting – I can’t seem to change the
   Disabled to Enabled.
 *  Plugin Contributor [Shahriar Alam](https://wordpress.org/support/users/shahriar0822/)
 * (@shahriar0822)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/shortcode-broken-3/#post-7000944)
 * Do you have latest version installed? Looks like you are using old version.
 *  Thread Starter [mamuran](https://wordpress.org/support/users/mamuran/)
 * (@mamuran)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/shortcode-broken-3/#post-7000956)
 * I deleted the old plugin and re-installed it – now the navigation does work but
   I can’t seem to figure out how to edit the short code for the default navigation(
   right now it goes by “create date” and would prefer to sort by category, then
   alpha).
 * Plus the download link works fine, but when I click on the title for the package
   itself in the archive, the page for the package displays this code:
 * page-template-1col-ex-autdio.php
 * Also would prefer not to show number of files and downloads for each package 
   in the archive view, but that’s not a must-have.
 * Thanks for your help!

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

The topic ‘Shortcode 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

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

 * 3 replies
 * 2 participants
 * Last reply from: [mamuran](https://wordpress.org/support/users/mamuran/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/shortcode-broken-3/#post-7000956)
 * Status: not resolved