Display File Download Count in WordPress

How to Use:

It’s very easy to use. In your post page, Just click on down arrow icon, select file or upload file with details and click on save/insert button as in below image and It will insert the code look something like [download id="1"] which is parsed on viewing post.
download monitor wordpress Display File Download Count in Wordpress

Customize Format:

You can create your own custom template to show download file in your format.
Go to DownLoads > Configuration > Cusotm Output Formats
Enter Name and format using available tags {url},{title}…etc.
download monitor wordpress2 Display File Download Count in Wordpress
For above template, enter following code in format:
?
1
2
3
4
5
<div class="downloadBox" style="border: 1px solid gray; padding: 15px 5px 5px; text-align: center;">
<span style="font-size: 24px;">{title}</span>
<div style="background-color: #3B5998; border-radius: 10px 10px 10px 10px; color: #ffffff !important; display: block; font-size: 16px; font-weight: bold; margin:7px auto; padding: 5px 18px; text-align: center; width: 200px; "><a href="{url}" style="color:white">Download</a></div>
<span style="color: gray;">{hits} total downloads, {size} </span>
</div>
After saving format, you can select format from dropdown-list during inserting into post OR you can pass ID of format something like this
[download id="2" format="2"]

Customize URL:

By default, the download URL is in following format:
http://yourdomain.com/wp-content/plugins/download-monitor/download.php?id=1
You can customize it in DownLoads > Configuration > Custom Download URL and select one of ID, FileName or Title options. If you select filename, new URL will be
http://yourdomain.com/downloads/filename.zip
It’s good for SEO as well as user convenient.

Create a Download Page:

You can create a download page easily. Goto Pages > Add New > Enter [download_page]in post and publish it.
download monitor wordpress3 Display File Download Count in Wordpress
You will get page in default format having search box, popular posts and categorywise post. you can customize it by using available shortcode options. You can get details in plugin documentation.
download monitor wordpress4 Display File Download Count in Wordpress
This plugin is easily customizable and having full of features like category, images, supports external link and many more. You can get more in plugin documentation. Share your opinion and let me know how you are managing files and displaying their download count.

No comments:

Post a Comment