Hello,
Can you please provide an update ?
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/
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/
You can see it as empty ouptut under “ACOUSTIC BAFFLES” section in “OELEX R-100 Baffle” accordian.
But, I’m seeing output here:

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
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/ ) 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>";
});
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/ . 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/. 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.
For now I have reverted the plugin version on production site to 3.1.28