Title: Shortcode not working
Last modified: July 19, 2021

---

# Shortcode not working

 *  Resolved [jatinder1987](https://wordpress.org/support/users/jatinder1987/)
 * (@jatinder1987)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/shortcode-not-working-391/)
 * Shortocodes stopped working on this page -> [https://oelerdev.wpengine.com/downloads/](https://oelerdev.wpengine.com/downloads/)
 * This issue started coming up in latest versions of this plugin. Currently I have
   version (3.2.11) on it. You can see issues in accordians in the page. Example
   in this section – ACOUSTIC BAFFLES
 * The shortcodes work fine here -> [https://www.oeler.com/downloads/](https://www.oeler.com/downloads/).
   The version of plugin here is 3.1.28
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fshortcode-not-working-391%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [jatinder1987](https://wordpress.org/support/users/jatinder1987/)
 * (@jatinder1987)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/shortcode-not-working-391/#post-14695608)
 * Hello,
 * Can you please provide an update ?
 *  Plugin Contributor [Shafaet Alam](https://wordpress.org/support/users/shafayat-alam/)
 * (@shafayat-alam)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/shortcode-not-working-391/#post-14695922)
 * Hi,
    Sorry for the delayed reply, `[wpdm_file]` shortcode was deprecated a long
   time ago and in the last major update we have removed it totally, please replace`
   wpdm_file` with `wpdm_package` Doc: [https://www.wpdownloadmanager.com/doc/short-codes/wpdm_package-single-package-embed-short-code/](https://www.wpdownloadmanager.com/doc/short-codes/wpdm_package-single-package-embed-short-code/)
 *  Thread Starter [jatinder1987](https://wordpress.org/support/users/jatinder1987/)
 * (@jatinder1987)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/shortcode-not-working-391/#post-14701817)
 * Hello Shafaet,
 * I already tried that solution but it didn’t worked. I still again tried it but
   it gives no output.
 * I tried it on dev site here -> [https://oelerdev.wpengine.com/downloads/](https://oelerdev.wpengine.com/downloads/)
 * You can see it as empty ouptut under “ACOUSTIC BAFFLES” section in “OELEX R-100
   Baffle” accordian.
 *  Plugin Contributor [Shafaet Alam](https://wordpress.org/support/users/shafayat-alam/)
 * (@shafayat-alam)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/shortcode-not-working-391/#post-14702070)
 * But, I’m seeing output here:
    ⌊Download%20Acoustic%20Product%20Specifications⌉
 *  Thread Starter [jatinder1987](https://wordpress.org/support/users/jatinder1987/)
 * (@jatinder1987)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/shortcode-not-working-391/#post-14709336)
 * Hi Shafet,
 * I understood how it will work.
 * For example – I was having a shortcodes in first accordian like this – [wpdm_file
   id=40] and I cannot make it working like this [wpdm_package id=40]. The Ids are
   also modified along with shortcodes. I was able to make it working via this shortcode-
   > [wpdm_package id=’4338′] . So first I had to search the file and then I have
   to add shortcode again. It took some time of me and there are so many on this
   page that needs to be replaced. Is their a fast method to do this or it needs
   to be replaced manually by finding and adding Ids along with shortcode?
 * Thanks
 *  Plugin Contributor [Shafaet Alam](https://wordpress.org/support/users/shafayat-alam/)
 * (@shafayat-alam)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/shortcode-not-working-391/#post-14709772)
 * Hi,
    That’s not possible anymore, actually, we removed that file after 6+ years
   of initial declaration. We suggest you to adjust the package ID in shortcodes,
   and it’s better to use `[wpdm_apckages]` ( [https://www.wpdownloadmanager.com/doc/short-codes/wpdm_packages-wp_query-in-a-shortcode-for-download-manager-packages/](https://www.wpdownloadmanager.com/doc/short-codes/wpdm_packages-wp_query-in-a-shortcode-for-download-manager-packages/))
   instead of individual package shortcodes when you are showing multiple items.
 * But, if it is too much hassle for you, you may add the following code at the 
   end of your active theme’s functions.php
 *     ```
       add_shortcode("wpdm_file", function ($params)
       {
           extract($params);
           $posts = get_posts(array("post_type" => "wpdmpro", "meta_key" => "__wpdm_legacy_id", "meta_value" => $params['id']));
           $data = (array)$posts[0];
           if (!isset($data['ID'])) return "";
           $data = wpdm_setup_package_data($data);
   
           if ($data['ID'] == '') {
               return '';
           }
   
           $templates = maybe_unserialize(get_option("_fm_link_templates", true));
   
           if (!isset($template) || $template == "") $template = $data['template'];
   
           if (isset($template) && isset($templates[$template]) && isset($templates[$template]['content'])) $template = $templates[$template]['content'];
   
           return "<div class='w3eden'>" . FetchTemplate($template, $data, 'link') . "</div>";
       });
       ```
   
 *  Thread Starter [jatinder1987](https://wordpress.org/support/users/jatinder1987/)
 * (@jatinder1987)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/shortcode-not-working-391/#post-14710244)
 * Hi Shafet,
 * Thanks for providing me code. It seems a quick solution for me.
 * 1) I used it on dev site and it worked awesome -> [https://oelerdev.wpengine.com/downloads/](https://oelerdev.wpengine.com/downloads/).
   The plugin version here I used is 3.2.11.
 * 2) Next I thought to add this code on my production site -> [https://www.oeler.com/downloads/](https://www.oeler.com/downloads/).
   I updated the plugin on production site. The version I updated to was 3.2.12 
   and I added the code in functions.php file and it didn’t worked with latest version.
   There was no output. It was not even showing shortcodes as output.
 *  Thread Starter [jatinder1987](https://wordpress.org/support/users/jatinder1987/)
 * (@jatinder1987)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/shortcode-not-working-391/#post-14710247)
 * For now I have reverted the plugin version on production site to 3.1.28

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

The topic ‘Shortcode not working’ 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/)

 * 8 replies
 * 2 participants
 * Last reply from: [jatinder1987](https://wordpress.org/support/users/jatinder1987/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/shortcode-not-working-391/#post-14710247)
 * Status: resolved