Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does WordPress store image meta data?

I've had a look in the 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?

like image 1000
alex Avatar asked May 31 '10 09:05

alex


People also ask

Where is meta data stored WordPress?

The wp_usermeta table stores metadata about most users, such as roles, capabilities, dashboard settings and even first and last names. Metadata added by plugins and themes.

Where is WordPress media library stored in database?

Where are your media files stored? Your media files are uploaded to the /wp-content/uploads/folder.

Where are WordPress thumbnails stored?

View Thumbnails Generated on Your Site You can view all the uploaded media files from the menu “Media > Library” in your WordPress admin panel.


1 Answers

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%'
like image 100
Dogbert Avatar answered Nov 20 '22 04:11

Dogbert