Good morning, thank you for your response. To clarify, we do not want the download button and we want the document title to provide a direct download link when clicked. We do not want the link to bring the user to the download page. It should simply download the file when clicked. I have modified the all-packages-shortcode.php file but would rather not be running with a modified file.
Hello,
Thank you for writing to us.
Yes, you can implement such functionality.
Simply put page_link|categories|download_link in the Data field name and Title|Categories|Download in the column heading.
Here’s the configuration screenshot: https://prnt.sc/Rnr8hjuo4ACU
Regards
Second question: where do i go to modify the text:
Please support us, use one of the buttons below to unlock the download link. (from the popup box)
Because The text does not make sense. I only offer to share but it says like or share …
I can edit from the php file if you tell me where it is …
Good day! We’ve noticed that when using the Elementor WPDM add-on and adding a package list a nicely formatted table as added. This is exactly what we want. However, the file icon and the file title are not links, there is no way to download the file while using this package table. also, we’d prefer not to have the download buttons shown. We like the appearance of the table without the button, but it does us no good if we can download the files. The only link is the category text. Below is an example of the code that is generated. How can we have this same table but with the image and the package title be direct download links to the file itself (not to the package download page).
<table id="wpdmmydls-066a18a6ef5f9ea80e3d04d68d8780f4">
<thead>
<tr>
<th id="title"
>Title</th>
<th id="categories"
>Categories</th>
</tr>
</thead>
<tbody>
<tr>
<td
style="background-image: url('http://intranet.pchc.local/wp-content/plugins/download-manager/assets/file-type-icons/pdf.svg');background-size: 36px;background-position: 5px 8px;background-repeat: no-repeat;padding-left: 52px;line-height: normal;">
<strong>ShoreTel Analog Phone Quick Reference (pdf)</strong><br/>
</td>
<td
>
<a class='sbyc' href='http://intranet.pchc.local/?p=22150&tax%5Bwpdmcategory%5D=shoretel'>ShoreTel</a>
</td>
</tr>
<tr>
<td
style="background-image: url('http://intranet.pchc.local/wp-content/plugins/download-manager/assets/file-type-icons/pdf.svg');background-size: 36px;background-position: 5px 8px;background-repeat: no-repeat;padding-left: 52px;line-height: normal;">
<strong>ShoreTel 560 Phone Quick Reference (pdf)</strong><br/>
</td>
<td
>
<a class='sbyc' href='http://intranet.pchc.local/?p=22150&tax%5Bwpdmcategory%5D=shoretel'>ShoreTel</a>
</td>
</tr>
<tr>
<td
style="background-image: url('http://intranet.pchc.local/wp-content/plugins/download-manager/assets/file-type-icons/pdf.svg');background-size: 36px;background-position: 5px 8px;background-repeat: no-repeat;padding-left: 52px;line-height: normal;">
<strong>ShoreTel 230 Quick Phone Reference (pdf)</strong><br/>
</td>
<td
>
<a class='sbyc' href='http://intranet.pchc.local/?p=22150&tax%5Bwpdmcategory%5D=shoretel'>ShoreTel</a>
</td>
</tr>
<tr>
<td
style="background-image: url('http://intranet.pchc.local/wp-content/plugins/download-manager/assets/file-type-icons/pdf.svg');background-size: 36px;background-position: 5px 8px;background-repeat: no-repeat;padding-left: 52px;line-height: normal;">
<strong>ShoreTel Communicator for Windows (pdf)</strong><br/>
</td>
<td
>
<a class='sbyc' href='http://intranet.pchc.local/?p=22150&tax%5Bwpdmcategory%5D=shoretel'>ShoreTel</a>
</td>
</tr>
</tbody>
</table>
<ul class='pagination wpdm-pagination pagination-centered text-center'></ul>
This reply has been marked as private.
This reply has been marked as private.
Hello,
In download package page, link template is not needed.Because download package will show only page template. You can use it by adding link template id in shortcodes
https://www.wpdownloadmanager.com/doc/short-codes/
Regards
Tanvir
Hello,
WIth free version you can not edit link template.
You can follow the doc here:
https://www.wpdownloadmanager.com/doc/templates/link-template/
You can find template id below:

Regards
Tanvir
This reply has been marked as private.
Hi,
Your used template name ( template="Single Column with Doc Preview" ). But there you need to use template ID ( template="link-template-calltoaction3" ).
Please read:
https://www.wpdownloadmanager.com/doc/short-codes/wpdm_category-query-all-downloads-from-one-or-more-categories/
This reply has been marked as private.
Hello Nayeem 🙂
Thank you! Where is the documentation for this API?
Is this correct:
$data['download_link'] = WPDM()->package->downloadLink($data['ID'], 0, array(
'template_type' ► 'url'
));
And this ?
$data['files'] = WPDM()->package->getFiles(get_the_ID());
Kind regards,
Cedric
Hello Noomia SPRL,
You can try this, <?php echo WPDM()->package->downloadLink($ID); ?> in your related page/link template file. I hope it will work fine for you. please check and let me know
Thank you and regards
Hello Noomia SPRL,
You can simply use the template tag [download_link], it will work fine for you. please check and let me know
Thank you and regards
Hello Nayeem 🙂
No problem. I have backups yes, but I don’t want to use the default template file. In fact, I only need to know by which function you have replace \WPDM\Package::downloadLink(), as it seems it’s not available anymore 🙂
I’m a developer, so you can be techy 😉
Kind regards,
Cedric
Hello, I tried adjustments mentioned in other forum posts, but still could not fix it.
I created search shortcode on frontpage (everything ok), and also a post page including search shortcode.
In other pages the search shortcode is working ok, but not in frontpage (using astra theme).
I tried different themes and disabling plugins, but still having issues.
I also tried search results widget on both frontpage and post, it works but without the link template (it returns not formatted text and without download links).
Hello there 🙂
I hope you’re fine?
My website was running WPDM 5.3.3 without any issue. Now, I’ve tried to update to 6.3.3 but I have a fatal error that breaks the site:
PHP Fatal error: Uncaught Error: Class 'WPDM\Package' not found
This code is in one of my template file. If I comment the lines, the site is “working” again but with some missing infos (due to these commented lines).
Here are the lines:
– $data['download_link'] = \WPDM\Package::downloadLink($data['ID'], 0, array(
'template_type' ► 'url'
));
– $files = \WPDM\Package::getFiles($data['ID']);
I guess that this method is not available anymore. But could you tell me how I should replace my code in order to make it work again?
Kind regards,
Cedric
Hello the update released today appears to have fixed one of the errors that was showing in error log but still getting a white screen when accessing the POS link https://test4.sksheep.com/pos
When I disable Download Manager it works perfectly fine.
This error still shows
2023/05/01 18:48:12 [error] 1529781#1529781: *281177 FastCGI sent in stderr: "PHP message: Payment gateway with handle 'wc-payment-method-cheque' has been deactivated in Cart and Checkout blocks because its dependency 'wp-i18n' is not registered. Read the docs about registering assets for payment methods: https://github.com/woocommerce/woocommerce-blocks/blob/060f63c04f0f34f645200b5d4da9212125c49177/docs/third-party-developers/extensibility/checkout-payment-methods/payment-method-integration.md#registering-assets" while reading response header fro1#1529781: *281177 FastCGI sent in stderr: "PHP message: Payment gateway with handle 'wc-payment-method-cheque' has been deactivated in Cart and Checkout blocks because its dependency 'wp-i18n' is not registered. Read the docs about registering assets for payment methods: https://github.com/woocommerce/woocommerce-blocks/blob/060f63c04f0f34f645200b5d4da9212125c49177/docs/third-party-developers/extensibility/checkout-payment-methods/payment-method-integration.md#registering-assets" while reading response header from upstream, client: 74.206.147.19, server: test4.sksheep.com, request: "GET /pos HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php80-fpm-test4.sksheep.com.sock:", host: "test4.sksheep.com"
2023/05/01 18:49:35 [error] 1529781#1529781: *281177 FastCGI sent in stderr: "PHP message: Payment gateway with handle 'wc-payment-method-cheque' has been deactivated in Cart and Checkout blocks because its dependency 'wp-i18n' is not registered. Read the docs about registering assets for payment methods: https://github.com/woocommerce/woocommerce-blocks/blob/060f63c04f0f34f645200b5d4da9212125c49177/docs/third-party-developers/extensibility/checkout-payment-methods/payment-method-integration.md#registering-assets" while reading response header from upstream, client: 74.206.147.19, server: test4.sksheep.com, request: "GET /pos HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php80-fpm-test4.sksheep.com.sock:", host: "test4.sksheep.com"
This reply has been marked as private.
Hi,
I want to click and popup expand, see the picture in this section. How can I add Code to this Templete?
Example web: https://www.iresauce.com/download/monster-5/
Screenshort: https://nimb.ws/AlfY8U
————–
This is the template page code.
<style type=”text/css”>.more_previews_a{display: block;float: left;margin-right: 6px;}</style>
<div class=”row”>
<div class=”col-md-5″>
[thumb_400x0]
</div>
<div class=”col-md-7″>
<ul class=”list-group ml-0 mb-3″>
<li class=”list-group-item d-flex justify-content-between align-items-center [hide_empty:version]”>
[txt=Version]
<span class=”badge badge-primary”>[version]</span>
<li class=”list-group-item d-flex justify-content-between align-items-center [hide_empty:download_count]”>
[txt=Download]
<span class=”badge badge-primary”>[download_count]</span>
<li class=”list-group-item d-flex justify-content-between align-items-center [hide_empty:file_size]”>
[txt=File Size]
<span class=”badge badge-primary”>[file_size]</span>
<li class=”list-group-item d-flex justify-content-between align-items-center [hide_empty:file_count]”>
[txt=File Count]
<span class=”badge badge-primary”>[file_count]</span>
<li class=”list-group-item d-flex justify-content-between align-items-center [hide_empty:create_date]”>
[txt=Create Date]
<span class=”badge badge-primary”>[create_date]</span>
<li class=”list-group-item d-flex justify-content-between align-items-center [hide_empty:update_date]”>
[txt=Last Updated]
<span class=”badge badge-primary”>[update_date]</span>
<li class=”list-group-item d-flex justify-content-between align-items-center [hide_empty:update_date]”>
[download_link]
</div>
</div>
<div class=”row”>
</div>
This is the shortcode I am using
[wpdm_all_packages login=1 items_per_page="10" jstable=1 order_by="date" order="DESC" cols="title|acf_custom_propietario|acf_culminacion_vencimiento|download_link" colheads="Title|Propietario|Vencimiento|Descarga"]
This is what I see
https://ibb.co/zSYnxXB
https://ibb.co/VtJbQL2
Hello OSCAR DEL RIO ALVAREZ,
You have to use the [thumb_WxH] or [thumb_url_WxH] template tag in your related package link template. For more template tags and usage, please visit here, https://www.wpdownloadmanager.com/doc/templates/template-tags/
thank you and regards
This reply has been marked as private.
This reply has been marked as private.