You can define the archive URL from settings page as shown in the screenshot above.
Currently it is https://ps-cardiagnostics.com/all-downloads/
You have created a custom template for wpdm-all-downloads.php
which is the template file for all downloads shortcode. But the file is empty in /your-child-theme/download-manager/wpdm-all-downloads.php
directory which basically removes all functionalities of all packages shortcode. Deleting this custom template should fix the issue.
Hi Sam,
Here is the list of all valid data fields https://www.wpdownloadmanager.com/doc/short-codes/wpdm_all_packages-list-all-downloads-in-tabular-format-in-a-page/ and how to use.
If you need to add tags function its not easy way. You need to edit files for customization.
Thank you
Hi. I have just enabled the download archive and I am still not able to get it to show all products on the same page – https://ps-cardiagnostics.com/all-downloads/. Please help. Thanks
Hi,
You have to customize wpdm-all-downloads.php
template file to change the download button behavior. Create a custom template file for all downloads table to keep the changes even after the plugin update. Here is how you can do that,
1 ) Copy the /download-manager/tpls/wpdm-all-downloads.php
file.
2 ) Place it in /active-theme/download-manager/
directory.
3 ) Replace echo $download_link;
with echo "<a target='_blank' href='".\WPDM\Package::getDownloadURL($data['ID'])."'>Download</a>";
in line no 355
That should open the links in a new tab.
Thanks.
Hi,
When I use [wpdm_category] it generates a login box (.w3eden div with a #wpdmlogin and a login form) in the header for every download on the page. It works fine while logged in, but visitors see the login boxes and it breaks styling on the page.
I’ve tried other shortcodes such as [wpdm_all_packages] for the same categories and these display fine, the issue only happens with [wpdm_category].
I need to use [wpdm_category] because I need the “AND” operator to display only downloads that fall within 2 categories.
All packages are Allow Access: All Visitors, I’ve even set each category to “All Visitors” and still can’t get the login box to go away.
Shortcode example:
[wpdm_category id="documents, blue" operator="AND" toolbar="0" paging="1" order_by="field name" order="asc or desc" items_per_page="10" template="5c740c312dc7e" cols=2 colspad=2 colsphone=1]
Thanks
Here is a short code that will show similar posts with thumbnails. Can you let me know what I have to update to include Downloads / All packages in the results too. Or if there is a better way to show similar downloads please let me know.
<?php $orig_post = $post;
global $post;
$tags = wp_get_post_tags($post->ID);
if ($tags) {
$tag_ids = array();
foreach($tags as $individual_tag) $tag_ids[] = $individual_tag->term_id;
$args=array(
‘tag__in’ ► $tag_ids,
‘post__not_in’ ► array($post->ID),
‘posts_per_page’►5, // Number of related posts that will be shown.
‘caller_get_posts’►1
);
$my_query = new wp_query( $args );
if( $my_query->have_posts() ) {
echo ‘<div id=”relatedposts”><h3>Related Posts</h3>
</div>’;
}
}
$post = $orig_post;
wp_reset_query(); ?>
I’m trying to display all of the downloads available and also remove the “Display ## downloads per page” located at the top left and also remove “Previous 1 Next” at the bottom right of the page.
https://marketingportal.zookdisk.com/zook-branding/
I have added an image and circled in red of what I want removed, but still be able to display all downloads.
Hi,
Category archive template is controlled by your theme. But you can partially control it from Downloads Settings Frontend Access Category Page Options. Chech the avilable option there.
Another option is using a custom taxonomy archive template in your theme. The file name is taxonomy-wpdmcategory.php
and you have to place it in your active theme directory. Implementing this requires PHP coding experiences.
Thanks.
The demo site is using our Crypton theme https://www.wpdownloadmanager.com/download/crypton/ So you need this theme to create the exact layout.
But you can also use category shortcodes to display downloads from a category. Install the TinyMCE add-on ( https://www.wpdownloadmanager.com/download/advanced-tinymce-button/ ) for using shortcode easily.
Waw, thank you!
It (sort of) works.
The code counts the number of packages and downloads correctly, but it sticks results to the top of the article, and not where the shortcode really is.
I also get “Updating failed” error every time I try saving the page. It seems the page actually does get saved though despite the error.
Can you take a look why?
Hello guys,
Right now, I’m using this code to generate my download button:
$data['download_link'] = \WPDM\Package::downloadLink($data['ID'], 0, array(
'template_type' ► 'link'
));
It generates this kind of HTML:
<a class="wpdm-download-link btn btn-primary " rel="nofollow" href="#" onclick="location.href='https://mysite.com/?wpdmdl=5286&refresh=5c6d13a29aef41550652322';return false;"><span>Download</span></a>
In the <a>
tag, I would like to add a data-url attribute that will contain the href to the file. How can I do that? How can I get only the url, not the full <a>
tag ?
In fact, I need that because I want to create a “Download selected files” button, that will launch multiple downloads at once, depending on selected packages. (not all-in-one ZIP, but trigger each download separately). How would you do that?
Thank you in advance,
Cedric
Could you please check the PHP error log or send me the log file. It should indicate where the issue is. Downloads are actually logged as I see the count is increasing.
This reply has been marked as private.
So, You are using the default category archive template provided by your theme to display downloads. If you want to modify the ordering in this case, you have to customize the category archive template of your theme.
But Download Manager has a category shortcode to show packages from a category in a better and customizable way. Here is a demo of category shortcode https://demo.wpdownloadmanager.com/wpdmpro/category-short-code/
Shortcode documentation https://www.wpdownloadmanager.com/doc/short-codes/wpdm_category-query-all-downloads-from-one-or-more-categories/
You can keep using your theme archive but category shortcode gives you more control over the view and ordering etc without code customization.
You can’t yet import the exported CSV to transfer your downloads. Because some column names don’t match the import file structure and some values are still exported in a serialized state. We are working on making this more useful. Currently, you have to change the column names and remove some CSV columns to make the exported CSV import ready.
For now, your best option is using the WordPress default exporter/importer to transfer the downloads. That works fine when you are transferring all your downloads.
We have just migrated multiple WordPress sites which use the Download Manager plugin to a new server with php 7.1.26 installed (the old server used 5.3). Ever since, the download buttons on WPDM package pages do not work – they do change the url of the window, but nothing downloads. However, if you remove the “WPDM Package URL Base” and the package name from the URL in the address bar, you not only get the download, but also the BEHAVIOUR configured in Download Manager settings (eg. if it is configured to try and open the file in browser, it does so, otherwise it simply downloads).
Can you please advise why this has happened, and is there a simple config change we can make to correct it?
Thanks in advance
Hi,
I have installed the Form Lock addon on your site. Using this add-on you can lock a package behind a form. Just enable the Form Lock and select the form when creating or editing the package. Please check the screenshot below.
https://www.evernote.com/l/AUfK_nc67SNO3KTvrpw1EnzF-Fsoot4AhNEB/image.png
After submitting the form you will get an email with download link. The email looks like the following screenshot.
https://www.evernote.com/l/AUelXA6ZXU1EZLWNyrDCiQ7B_xE6rMRcmIUB/image.png
The email template is customizable from Downloads Templates Email Templates page.
Let me know if you have any further query.
Thanks.
Hi Shahriar,
I have made some progress on this.
Summary
The site runs “Download Manager” 4.7.3 with FacetWP 3.3.1. The site has more than 140 downloads. The “downloads” archive page display well all my downloads.
After updating “Download Manager” 4.7.3 to 4.9.2, I have a big issue : the “downloads” archive page displays nothing under the header, where the downloads should appear (no footer neither). I opened my PHP file to manually limit the number of downloads in the query to 90. Than everything was working fine again. If I change that number to 100, the issue is back.
So I guess that the way things are done in 4.9.2 are more ressources “greedy” ? What server configurations do you recommend ? Do you know what can cause that between 4.7.3 and 4.9.2 ?
Thank you in advance !
There is JS error in console. Please send temporary admin login info in private reply. The issue may be related to the error. Although the publish date works fine in my setup. Did you customize the all downloads table template? There is no built-in support for “download_link_blank”.
All new uploads to my site have recently encountered this error:
<b>Notice</b>: A non well formed numeric value encountered in <b>/public_html/people/wp-content/plugins/download-manager/libs/class.DownloadStats.php</b> on line <b>35</b><br />
Line 35 of the mentioned file:
$udl[“”.$index] = isset( $udl[“”.$index] ) && is_int( $udl[“”.$index] ) ? $udl[“”.$index] + 1 : 1;
This has meant that all PDF previews do not work. I can still download the document, .docx previews do not work either.
The attached screenshot is what the preview is rendering the PDF as with the error at the top.
line 35 mentioned above was double checked with a previous post to ensure it was the same as required. I updated the plugin as well to see if that would fix it and it has not.
Need some help with this asap. Thanks.
Trying again with smaller file size. Both files have been downloaded and are showing zero downloads
Yes, you can show the publish date and expert in all packages table. Please check the shortcode documentation here for more details https://www.wpdownloadmanager.com/doc/short-codes/wpdm_all_packages-list-all-downloads-in-tabular-format-in-a-page/
Hi,
You can use shortcode parameters to customize the look. Shortcode doc https://www.wpdownloadmanager.com/doc/short-codes/wpdm_all_packages-list-all-downloads-in-tabular-format-in-a-page/
You can also use a custom template for /download-manager/tpls/wpdm-all-downloads.php
file to customize the all downloads table. Please check the template doc here https://www.wpdownloadmanager.com/doc/template-files/
Let me know if you have any further query.
Thanks.
I recently renewed my license and upgraded to DM Pro 4.9.2. How do I customize the look/feel of the all downloads page so that it doesn’t look like it does now?