What are the meta fields for an attachment?
You can easily inspect all the metadata for any post like so: // 123 is the (attachment) post ID var_dump( get_post_meta( 123 ) ); And in a default WordPress setup with no plugins or theme which add custom metadata to the image attachment post, the metadata you’d get are: _wp_attached_file — string, the image file … Read more