Skip Navigation

[Resolved] Show file size and download count for files uploaded to a post

This thread is resolved. Here is a description of the problem and solution.

Problem:

I added a function that I found from the Toolset support forums and I'm wondering if you can help me with 2 things:

1. Show Download Count per file

2. Show file size per file

Solution:

There isn't such kind of built-in feature within Toolset plugins, you might consider other plugins, for example:

https://wordpress.org/plugins/search/download/

Relevant Documentation:

This support ticket is created 2 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by duongN-3 2 years, 10 months ago.

Assisted by: Luo Yang.

Author
Posts
#2263301
Screen Shot 2022-01-10 at 9.28.02 PM.png

Tell us what you are trying to do?
I'm using the following shortcode to show files uploaded and associated to a post type.
This shortcode only shows the filename versus the entire URL that Toolset prints out.
[my_file_name types_field="upload-subtitle"]
The details of that code can be found here: https://toolset.com/forums/topic/wpv-post-featured-image-output-file-name/#post-335862

I added a function that I found from the Toolset support forums and I'm wondering if you can help me with 2 things:
1. Show Download Count per file
2. Show file size per file

Attached is what my view looks like on the page.
Is there any documentation that you are following?
No

Is there a similar example that we can see?
Example below:
nameoffile.jpg | file size (in kb/mb) | total downloads

What is the link to your site?
hidden link

#2263397

Hello,

There isn't such kind of built-in feature within Toolset plugins, and according to our support policy, we don't provide custom codes support:
https://toolset.com/toolset-support-policy/

In your case, you might consider other plugins, for example:
https://wordpress.org/plugins/search/download/

For your reference.

#2264333

My issue is resolved now. Thank you!