Problem:
I'm developing a view that I want to display a series of PDF documents from the WordPress media library. I've created a view that selects content from the Media post types, including some custom fields I've added to the Media post type, and everything works, but I'm unable to get a few pieces of data related to the media item that I need, specifically, the file type and the file size.
Solution:
There isn't such a built-in feature within Toolset, but you can create a custom shortcode to get those size and file type information, for example:
https://toolset.com/forums/topic/displaying-type-and-size-of-media-post-in-views/#post-1147002
Relevant Documentation:
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.
Our next available supporter will start replying to tickets in about 3.64 hours from now. Thank you for your understanding.
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)