Terrorpixel1991
2/26/2016 - 12:05 PM

Template: Bilder mit Caption

Template: Bilder mit Caption

<div class="entry-thumbnail">
<?php the_post_thumbnail(''); ?> <!-- This displays the featured image -->
<?php if ( $caption = get_post( get_post_thumbnail_id() )->post_excerpt ) : ?>
    <p class="caption"><?php echo $caption; ?></p>
<?php endif; ?><!-- This displays the caption below the featured image -->
</div>