This reply has been marked as private.
Hi,
You are using a custom template of list-packages-panel.php
on that page. The default one doesn’t have the category filter. But this page should be used only by users who can create/edit packages.
For normal users, create a page with all packages shortcode, this one has built-in category filter.
[wpdm_all_packages items_per_page="10" jstable=0 cols="page_link,file_count,download_count|categories|publish_date|download_link" colheads="Title|Categories|Publish Date|Download::155px"]
Thanks.
This reply has been marked as private.
Why not use the [wpdm_direct_link]
shortcode? This shortcode is best suited for this kind of use case.
[wpdm_direct_link] – Embed direct download link as a simple text link
Hi,
no man the template tag don’t work… I need a direct link not a link that open browser to package download page…
You can try yourself:
https://www.scsconsulting.it/download/il-governo-dei-rischi-per-la-continuita-del-business/
I need an email link that START download!
Thanks,
Icons are already uploaded and setting up.
For the rest, sorry I don’t understand.
For example, I’m using this short code :
[wpdm_all_packages items_per_page="20" categories="windows" jstable=1 order_by="field_name" order="ASC/DESC" cols="title,file_count,download_count|categories|update_date|download_link" colheads="Title|Categories|Update Date|Download::155px"]
the result is this one :

What shortcode use to see my icon instead of basic icon ?
Thanks !
You can unlink the domain from your order details page https://www.wpdownloadmanager.com/user-dashboard/?udb_page=purchases But no need apply the key in dev domain if it is temporary. Do you encounter the same issue in dev domain?
Ok. Thank you.
1) To support the custom tag, is it just a matter of doing a search and replace in that PHP file? If so, what do I need to search for and what do I need to replace it with?
2) I did a test using a regular tag and the similar downloads are now being displayed. How do I change the link template that is used for [similar_downloads]? Is there somewhere where I can configure the settings?
Thanks.
1 ) In your package settings meta box set “Click here to download PDF” as “Link Label”. This “Link Label” defines the download button text which is “Download” by default.
2 ) Each package has its own details page, but it is not strictly necessary to use the details page. You can use a package shortcode to insert the download anywhere you want. Copy the package shortcode from the “All packages” admin page or use the TinyMCE Button add-on to insert shortcode visually. This add-on adds a Download icon in Gutenberg classic editor, use that to insert package in a page or post.
The result of the shortcode is controlled by the link template. You can use any of the built-in templates or create your own using Template editor from Downloads > Templates page.
3 ) If the download button isn’t visible to you then it means you user role doesn’t have access to the package. Set “All Visitors” in the “Allow access” option of package settings meta box to fix that.
Please check if you have [wpdm_direct_link]
shortcode in that page. Maybe id
value is missing from the shortcode.
[wpdm_direct_link] – Embed direct download link as a simple text link
1 ) Create a page with WPDM Login Shortcode [wpdm_login_form redirect="redirect_url"]
and set it as Login page in Downloads > Settings > Frontend Access page.
2 ) Add the following code to your theme’s functions.php
file,
add_action( 'template_redirect', 'wpdm_login_redirect' );
function wpdm_login_redirect(){
if( ! is_user_logged_in() && get_the_ID() != get_option('__wpdm_login_url') ):
wp_redirect( get_permalink( get_option('__wpdm_login_url') ) );
exit();
endif;
}
Please try activating Bootstrap 3 from Downloads > Settings > User Interface Tab. That should fix the issue. Bootstrap 4 version lacks a template that handles the emailed download link.
Hi,
Have you enabled the archive page from Downloads > Settings > Basic > URL Structure panel? If this option is active but still nothing in archive URL then please send temporary wp-admin login info in private reply.
You can use this addon WPDM Directory Add-on to get more advanced features like ajax search, filter, link template support etc.
Thanks
Hi,
Since updating WPDM week, this page, amist.com.au/join-amist-super/, is giving off this error:
Notice: Undefined index: eid in /home/…/public_html/wp-content/plugins/download-manager/libs/class.ShortCodes.php on line 521
Notice: Undefined index: eid in /home/…/public_html/wp-content/plugins/download-manager/libs/class.ShortCodes.php on line 522
Notice: Undefined index: eid in /home/…/public_html/wp-content/plugins/download-manager/libs/class.ShortCodes.php on line 521
Notice: Undefined index: eid in /home/…/public_html/wp-content/plugins/download-manager/libs/class.ShortCodes.php on line 522
The page and its links appear to be functioning OK, but I may be missing something. I’ve switched off errors for now.
Other pages with download links don’t appear to have errors.
Thanks.
Hello
Seems like you can do a lot with this plugin but I’m a bit confused.
I would like a simple “Click here to download PDF” and when clicked, prompts the user to enter in an email address. Once entered the download starts immediately.
I’ve set up the test PDF with email locking and what not, but this is saved a separate Post page? I don’t want this to be a separate page or post. When I preview it I get a red box saying I can’t download, when I show it to a friend they don’t get the red box but there’s no button for them to download.
Since I purchased a pro version of this plugin, I would rather not just get a link to another forum post or FAQ. Can I receive step by step support on how to do this? Thanks!
Hi,
The format of the link that is sent to visitors via the Email Lock has changed from v4 to v5, and the new format URLs all return 404.
old format was like this: /?wpdmdl=(packageID)
new format is like this: /wpdm-download/(hash)
The old format still works and is generated by the direct ‘download’ button, the new format returns 404 from any client / browser / etc.
Can you advise on what we need to do to troubleshoot and fix this?
Thank you
When clicking the link in the email to download the file I see the following:
Warning: include(/var/www/wp-content/plugins/download-manager/tpls//download-page-clean.php): failed to open stream: No such file or directory in /var/www/wp-content/plugins/download-manager/libs/class.Apply.php on line 1170
Warning: include(): Failed opening '/var/www/wp-content/plugins/download-manager/tpls//download-page-clean.php' for inclusion (include_path='.:/opt/remi/php72/root/usr/share/pear:/opt/remi/php72/root/usr/share/php:/usr/share/pear:/usr/share/php') in /var/www/wp-content/plugins/download-manager/libs/class.Apply.php on line 1170
Any help would be appreciated.
Thanks.
Thanks. Sorry, maybe I wasn’t clear in my post, but what I am looking for is the ability to just display the download button only (not the entire link template that is assigned to that package). Is there a way to just display just the download button only?
https://pasteboard.co/IId7pzg.png
Thanks
Hi Shahriar,
If the cost of the product is zero, we see the download link but the viewer doesn’t display the file. Shouldn’t it show the file if it is zero cost?
This is on one of my sub-sites I’m setting up. I prefer not to deactivate Premium Package because I will have some items I want to sell on the site.
https://www.yamahastylesgroup.com/download/roddy_mccawley-pdf/
There will be a lot of free PDFs on there but the members must still be logged in to see them. Some zero cost, some paid for. Any ideas for me?
Maybe a template with a different shortcode if the viewing is free? On my main site I’ve edited every PDF using a different plugin in the Download post description, it is very time-consuming so I’m trying to find a quicker way.
I’m testing the other things we have been discussing, I haven’t had much time to do the testing lately.
Many thanks,
Mike
Download Manager page and link templates use [create_date]
template tag to display the package date. Now we can extend this tag to display the time along with the date. Just add the following code to your theme’s functions.php file.
function wpdm_package_date_time($vars){
$vars['create_date'] = get_the_date('F j, Y g:i A', $vars['ID']);
$vars['update_date'] = get_post_modified_time('F j, Y g:i A', $vars['ID']);
return $vars;
}
add_filter('wdm_before_fetch_template', 'wpdm_package_date_time');
Hi,
Please check the download link expiration options from the Basic Settings page http://prntscr.com/pjxfnw Send temporary wp-admin login info in private reply if you can resolve it by changing these options.
Thanks.
I have wpdm pro 5.x installed.
If I use the lock option for privacy acceptance, I can get the file. If I also use the email lock, I can’t get the file because the site send an expired link(I didn’t set any expiring date).
When I try to use the Template Preview for Link Template or Page Templates the new window opens but the following error message appears.
I have DownloadManager Version 5.0.3 installed.
Warning: include(/home/xxxxx/public_html/wp-content/plugins/download-manager/tpls//clean-template.php): failed to open stream: No such file or directory in /home/xxxxx/public_html/wp-content/plugins/download-manager/admin/menus/class.Templates.php on line 37
Warning: include(/home/xxxxx/public_html/wp-content/plugins/download-manager/tpls//clean-template.php): failed to open stream: No such file or directory in /home/xxxxx/public_html/wp-content/plugins/download-manager/admin/menus/class.Templates.php on line 37
Warning: include(): Failed opening ‘/home/xxxxx/public_html/wp-content/plugins/download-manager/tpls//clean-template.php’ for inclusion (include_path=’.:/usr/local/php70/pear’) in /home/xxxxx/public_html/wp-content/plugins/download-manager/admin/menus/class.Templates.php on line 37
You can bulk update page/link template of old packages using Default Values add-on. This add-on also saves default values of all package settings for your new packages.
Or you can add the following CSS to your active theme’s functions.php file. After adding the code visit any page. That will complete the update process. Then remove the code.
function wpdm_update_link_templates(){
$params = array( "post_status" ► "publish", "post_type"►"wpdmpro","posts_per_page"► -1 );
$q = new WP_Query($params);
while ( $q->have_posts() ) {
$q->the_post();
update_post_meta(get_the_ID(),'__wpdm_template', 'link-template-default-icon');
}
}
add_action('init','wpdm_update_link_templates');
Maybe the package is locked. The download will work only for open packages, getting the download link of locked packages requires elaborate customization.
If your downloads doesn’t have any lock then try replacing the code your sent above with the following,
<td><a href="<?php echo get_permalink($stat->pid).'?wpdmdl='.$stat->pid; ?>"><?php echo $stat->post_title; ?></a></td>