This is a quick and dirty plugin to display the title, description, and caption. Might come in useful for some folks. Save this code as add-image-descriptions.php and upload it to your plugins directory: /wp-content/plugins/
<?php
/**
* Plugin Name: Add Image Descriptions
* Plugin URI: http://jonbourne.com/
* Description: Adds titles and descriptions to the captions of embedded images
* Version: 0.1
* Author: Jon Bourne
* Author URI: http://jonbourne.com/
*/
function img_description_caption_shortcode($attr, $content = null) {
extract(shortcode_atts(array(
'id' => '',
'align' => 'alignnone',
'width' => '',
'caption' => '',
'description' => 'asdf'
), $attr));
if ( 1 > (int) $width || empty($caption) )
return $content;
$attach = get_post($my_id = str_replace('attachment_','',$id), ARRAY_A);
$title = $attach['post_title'];
$caption = $attach['post_excerpt'];
$description = $attach['post_content'];
if ( $id ) $id = 'id="' . $id . '" ';
if ( $description ) $description = ' <span class="wp-caption-text-description">'.$description.'</span>';
return '<div ' . $id . 'class="wp-caption ' . $align . '" style="width: ' . (10 + (int) $width) . 'px">' . $content . '<p class="wp-caption-text">' .
'<span class="wp-caption-text-title">' . $title . '</span> ' .
'<span class="wp-caption-text-caption">' . $caption . '</span> ' .
'<span class="wp-caption-text-description">'. $description . '</span>' .
'
</div>';
}
remove_shortcode('wp_caption', 'img_caption_shortcode');
remove_shortcode('caption', 'img_caption_shortcode');
add_shortcode('wp_caption', 'img_description_caption_shortcode');
add_shortcode('caption', 'img_description_caption_shortcode');
?>