1
vote
Display custom post type attached media file sizes
From your array, you should get the Media ID of the videos. If you have the media ID, it will be as listed below:
// Let's say you have the media ID
$meta = filesize( get_attached_file( $attachment_id ...
1
vote
Accepted
Best performance for use Custom Field in WP
Neither will be faster because the root of the performance problem is the WP table design, not the plugin. The post meta table is optimised for finding values when you already know the post ID/keys, ...
- 55.7k
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
advanced-custom-fields × 1479custom-post-types × 304
custom-field × 260
php × 177
wp-query × 149
plugins × 99
loop × 86
custom-taxonomy × 81
functions × 74
meta-query × 67
posts × 42
filters × 41
shortcode × 40
woocommerce-offtopic × 38
images × 37
customization × 34
post-meta × 34
taxonomy × 33
categories × 31
query × 29
block-editor × 26
array × 25
search × 24
terms × 23
date × 23