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
Short-codes
Regards
Tanvir
Hello,
WIth free version you can not edit link template.
You can follow the doc here:
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:
[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.
This reply has been marked as private.
This reply has been marked as private.
I opened the WP editor on may specific download page and it works now. It must have been a issue with WordPress after an update. The Registration page was showing that the subscriber was logged in, but when I opened the download page or other pages, it did not show at the top the the subscriber was logged in. After just saving the page now it shows the subscriber is logged in and the download links are all showing on the download page.
I am having the same problems as these people in this post (https://www.wpdownloadmanager.com/support/topic/pdf-stamper-flattens-hyperlinks/) and here (https://www.wpdownloadmanager.com/support/topic/pdf-stamper-removes-internal-links-in-pdf/).
When we “Stamp” a PDF with PDFStamper, it flattens the links (both masked and direct URLs) so readers of that PDF cannot actually click the links when they view or download the PDF.
Has this been fixed yet?? It’s April 2023, nearly 3 years after these problems have been mentioned on these forums. I’m hoping the team as WPDownload Manager or any users have a solution or workaround.
Hello Deb,
Thanks for contacting us.
In the first screenshot that is from Email Template. Can be found in Downloads > Templates > Email Templates
menu
In ths second screenshot that is from link template. Details here.
You can find all from Downloads > Templates menu
If you need further assistance please let me know.
Regards
Tanvir