views:

68

answers:

1

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?

Thanks

+2  A: 

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` = '_wp_attachment_metadata'
Adam
Not where I expected them.. ah well thanks Adam :)
alex
To WordPress, almost everything is a post. So always go there first when you are looking for something.
Javier Constanzo