PHP is not supported in link/page template. But you don’t need PHP for what you are trying to do. You can hide a custom field when it is empty by adding [hide_empty:template_tag] as a CSS class in wrapping node.
I am using the Divi Template and I changed the theme link color, but the download links are still using the old color. I can’t seem to find a place to change this. Can you help? (I did look through the documentation and the website and was unable to find this information). There must be a way to style links. Do I have to put the html for font color in the actual template? if so, that is kind of gross as I should be able to change the link color in a theme and have all links get updated.
I am new to WordPress and Download Manager. I am creating a link template using custom fields that I want to show up in the template only if the field is not empty. Is there an easy way to do this? I looked through the site and I couldn’t find any examples but it does appear that php is useable, but I can’t seem to get it to work. Can you help?
I have removed the old [wpdm_package_id] input and added a new hidden field with the same default value. Also applied the embedded form ( Used a page template with [download_link_extended] ). Now lock is working.
I followed all steps mentioned here in your docs, but it seems like the shortcode always points to the current user’s public profile (not the author of the current package). Is there any parameter I can pass to the shortcode to catch the current package’s author?
No need to zip the .eps file before uploading. Just tested a .eps file downloaded by WPDM. Works fine. Could you please send me the original file and the download link?
Yes, there is a template tag [pdf_thumb] that shows the PDF thumb ( first page of pdf ). In your link downloads are shown using WPDM link template. Now, to show PDF thumb you have to create a custom link template with this tag [pdf_thumb].
You can create custom link template from Dashboard Downloads Templates page.
After a user enters a password (correct or incorrect) the link displays “Processing” and freezes, as per the second screen shot. None of our downloads work any more.
We want to show all downloads from one category on one page with preview images.
Our downloads are only images (HI-RES) and we want to show our customers the complete category in a table format.
Preview Image, Download Size, Download Button
Thats it.
How do we do this?
I have linked to the category in our main menu, but it does not look nice. I also dont understand how to edit this category view.
Any help would be appreciated.
THX
PS: I have attached a screenshot from our current category view.
Looking at the file via FTP, the file doesn’t exist. I tried uploading a file as admin and it did not upload to the dir /wp-content/uploads/download-manager-files/
The file size is 131 KB and the WPDM Upload Setting limit is 1024KB chunk size.
I tried uploading on one of the other sub sites (technology) and had the same outcome.
Next, I created a new download package and that also had the same outcome.
It seems the add-on has a bug. After linking to S3 when we try to download it throws an fatal error saying Fatal error: Uncaught Error: Class ‘WPDM\libs\DownloadStats’ not found in …/wp-content/plugins/wpdm-amazon-s3/wpdm-amazon-s3.php:392
The URL is generated by the [download_url] template tag. But it doesn’t generate the index.html in the download link. wget is setting this name as there is no static file name is URL.
Thanks for your reply. The solution your reference is simply to use a cli output option of wget, which is always available to anyone downloading a file from anywhere.
I understand WPDM generates dynamic download links, however, really only the keys are dynamic–the base url is always the same. Can you tell me what piece of code contains the ‘index.html’ static name? At least then I could change it to ‘billybob.zip’, or whatever…
I am not familiar with CSV bulk import. Here is a screen shot of what I am talking about. I can only attach one file. I have a folder that has 3 images in it. I want the user to be able to download the link and see all three images in the folder.
Sorry for the delayed reply. It seems there is nothing to do from WPDM side as wget uses the URL to name the file. WPDM download links are dynamic, it doesn’t contain the exact file name which wget can use to name the file.
But there is an option to set the file name and the download URL contains the package name. So, I think your users can utilize it.
Yes, you can control which columns to show for the [wpdm_all_packages] shortcode.
Here is the shortcode: [wpdm-all-packages items_per_page="20" jstable=1 order_by="date" order="DESC" cols="title|post_content|package_size|download_link" colheads="Title|Description|Size|Download"]
It is possible to keep the package download button open in the same session once the package is unlocked. You can add the following code after line 193 in /download-manager/libs/class.PackageLocks.php to apply it,
But it will require very lengthy modification to unlock single file links. For now, use this modification. We will consider what you proposed for the future release of WPDM.
Thanks Shahriar, I had the purchases page and the guest purchases page set up before but when WP Download Manager got updated, the short codes got changed and the old ones didn’t work anymore. I’ve sorted that out now with the new short codes.
I have re-enabled guest checkout and guest downloads. When I tested it with TestPay (after I had logged out of my site and using another browser), I received a purchase confirmation email that directed me to make a new account, but underneath that it said if you are in a hurry, no need to register – just go ahead and download. This is good because I don’t want my customers to have to register.
But today a customer forwarded his purchase confirmation to me and at that link there was no option to bypass registration. And he said he was having troubles with the captcha and could not register. Is there a way that I can avoid forcing my customers to register?
Regarding your advice with editing the purchase-confirmation template, I will try this, thanks.