I'm trying to display animated image captions from a slideshow created with a wordpress plugin, meteor slides.
I copied the following function into my functions.php file:
function the_post_thumbnail_caption() {
global $post;
$thumbnail_id = get_post_thumbnail_id($post->ID);
$thumbnail_image = get_posts(array('p' => $thumbnail_id, 'post_type' => 'attachment'));
if ($thumbnail_image && isset($thumbnail_image[0])) {
echo '<span>'.$thumbnail_image[0]->post_excerpt.'</span>';
}
}
Unfortunately the function doesn't seem to get triggered. You can see what I'm talking about here on my testing website: http://mywptestsite.is-great.org/lalala/
What am I doing wrong here? Thanks Kim