Where does WordPress store image meta data?
I've had a look in t开发者_运维百科he database, but have not been able to find it.
I'm talking about the caption, description etc.
I'm doing a custom gallery and I need to access this information.
So where does WordPress store this info?
It is stored in wp_posts
and wp_postmeta
Run these SQL Queries to have a look
SELECT *
FROM `wp_posts`
WHERE `post_type` = 'attachment'
SELECT *
FROM `wp_postmeta`
WHERE `meta_key` like '_wp_attach%'
精彩评论