Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @mcyger ,

    Yes, you can.
    In order to show the total downloads of a download package, you have to use this template tag [download_count] in the link/page template that you are using. I think you are using link-template-default-icon link template.

    1. Copy link-templates directory from /plugins/download-manager/src/package/views directory to your active theme directory.

    2. Make a new directory as download-manager on your active theme directory.

    3. Now remove all files from {active-theme}/download-manager/link-templates except the template files you need to update. In your case, it’s link-template-default-icon.php file.

    4. Update template file(s) in {active-theme}/download-manager/link-templates directory as per your need. As you need to show the download count you have to add [download_count] there.

    • This reply was modified 3 years, 3 months ago by Sohrat.
    Thread Starter M C

    (@mcyger)

    Hi Sohrat,

    Thank you for your quick response! ??

    On step #1, I do not have that directory. Here’s what I have:
    https://www.dropbox.com/s/kzr4alfh6l83uq9/Screen%20Shot%202021-08-23%20at%203.27.54%20PM.png

    But I did find it in the /plugins/download-manager/tpls/link-templates folder.

    And I followed the remainder of your steps and it worked perfectly. Thank you!

    The final step, in case anyone else has this issue, is to reference the template in the shortcode:
    [wpdm_package id=’####’ template=’link-template-modified-name.php’]

    Thanks again.

    Hi @mcyger
    You are using an older version of WPDM that’s why it’s different.
    The latest version is now 3.2.15.
    Also, yes in the [wpdm_package] shortcode the template ID should be a link-template ID.
    More details can be found here.
    With Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to Add Download Count to Widget?’ is closed to new replies.