Skip to content

Instantly share code, notes, and snippets.

@radarin
Created September 22, 2018 10:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save radarin/a86601920679c199f7f43ef4bcb3c03d to your computer and use it in GitHub Desktop.
Save radarin/a86601920679c199f7f43ef4bcb3c03d to your computer and use it in GitHub Desktop.
Wordpress Bildunterschrift
<?php if ( $caption = get_post( get_post_thumbnail_id() )->post_excerpt ) : ?>
<p class="caption-head"><?php echo $caption; ?></p>
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment