Support » Fixing WordPress » how get attachment description?
9 years ago
How i can display the attachment description of a uploaded image?
AFAIK, it only displays when you call the_content() on the attachment page.
8 years, 10 months ago
Basically, every attachment is also a post.
So, something like
should output the attachment description.
($attachment being attachment data you pulled out of the database).
If you need further explanation please take a look here: http://codex.wordpress.org/Template_Tags/get_posts#Show_attachments_for_the_current_post