download counter

in Download Manager Free

Viewing 10 posts - 1 through 10 (of 10 total)
Jun 18, 2015 at 8:45 pm
#30799
Member
petryshakm
OP

Hello!

Is there any function which can show download counter? I need to show it in my wp theme files.

Thank you!

Jun 21, 2015 at 8:36 pm
#30914
Keymaster
Shahjada
Staff

Use following code:
<?php echo get_post_meta(get_the_ID(), "__wpdm_download_count",true); ?>

Jun 21, 2015 at 8:39 pm
#30916
Member
petryshakm
OP

Thank you very much!
It works

Jun 21, 2015 at 8:42 pm
#30919
Keymaster
Shahjada
Staff

You’re welcome. Please rate us 5* here https://wordpress.org/support/view/plugin-reviews/download-manager?rate=5#postform if you get some free moments, that will be very big support for us 🙂

Jun 21, 2015 at 9:03 pm
#30921
Member
petryshakm
OP

I left comment with 5 stars

Jun 21, 2015 at 9:33 pm
#30924
Member
petryshakm
OP

There is another problem. When I click on download link I get downloaded txt file with text inside – “You don’t have permission to download this file”

Everything was ok 2 days ago. I didn`t make any changes on site settings. Is this some typical error? How to fix it?

Jun 22, 2015 at 5:21 am
#30927
Member
Tauhid

Please try to deactivate and than activate the plugin, it will solve the issue.

Nov 16, 2018 at 9:04 pm
#89541

I have the pro version and I tried your code, but it doesn’t work. Am I doing something wrong?

<?php echo get_post_meta(get_the_ID(14698), “__wpdm_download_count”,true); ?>

Nov 16, 2018 at 9:36 pm
#89542

I found a workaround. I created a template

Nov 18, 2018 at 7:33 am
#89551
Keymaster
Shahjada
Staff

@ilocaleverywhere, yes, in pro version, you can handle it from the template. However, when you already know the package ID ( ex: 14698 ), the correct code is:

<?php echo get_post_meta( 14698 , “__wpdm_download_count”, true); ?>

For for pro support, please post here https://www.wpdownloadmanager.com/support/forum/download-manager-pro/ in future :).

Viewing 10 posts - 1 through 10 (of 10 total)

The topic "download counter" is closed to new replies.