file_size
is a virtual field provided by the oik-fields plugin.
You can use it whenever a shortcode supports the display of fields, using the fields=
parameter
and when the post_type
being displayed is an attachment
that has a file size.
Here we use it to display the file size of attachments to this shortcode example.
[bw_table post_type=attachment fields=title,file_size,excerpt]
Title | File size | Excerpt |
---|---|---|
BASF Empty Spool case | 57489 | The French for Empty Spool is Bobine vide |
bobbing wide – where does it come from | 78284 | A poem by Herb Miller explaining the derivation of Bobbing Wide. |