About

In WordPress images are special types of posts. The caption of an image is stored as the excerpt of that post.

In WordPress images are special types of posts. The caption of an image is stored as the excerpt of that post. Themes and plugins can access the caption using $attachment->post_excerpt, where $attachment is an attachment object retreived either directly from the media library or by scanning the attachments to a 'normal' post.

history | excerpt history