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

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