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>
while( $my_query->have_posts() ) {
$my_query->the_post(); ?>
<? }
echo ‘
</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.
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
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
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.
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?
Hi there,
Question for this evening, i am using Download manager since many many years and i’m completely satisfied.
Using the 4.1.3 since i installed it with another plugin to order download by alphabetical order, i decided to update it with the lastest version of WPDM.
Badly, i had to postpone the update due to some graphic changes/issues with my template that was not supported anymore with the lastest wordpress.
during the time i need to investigate to modify WPDM template to fit my old wordpress template, is there a way to order download by name? i saw few times on google some short code or other things, but there is actually no short code to input. I add a category, add downloads to it, and i add the link of the category on my menu. thats it (unless i missed something)
Which file should i modify for ALWAYS having all my downloads, from any category to be orderded by alphabetical order?
My goal is to remove the other plugin that was re-ordering downloads on top of WPDM.
Thanks!
actually using : “Alphabetic Pagination” plugin otherwise it’s always by date
A little question – just in case I have missed something!
So far if I have a download that I want to add, I do it manually: “New Download”, then give it a title, select the proper file for downloading, then select a category, then I go down and specify lock options (with some terms and conditions text to be accepted) and a custom icon.
But now I have just a few “types” of downloads, and I more or less have to copy over these data from one download to the next, and just change the title and the file name.
It would now be handy if I could just do one of the following:
– either “copy” a complete downlad definition with a new title, then “edit” and change the few things that are different
– or have some kind of “download template” that already includes all these things and from which I choose if I define a new download
Is this already there and I am only too stupid to find it? Or would it be part of another extension? Or is it just a “nice to have” that does not exist yet?
Regards,
Cornelis