开发者

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%'
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜