Function: the_post_thumbnail_caption

the_post_thumbnail_caption( integer | WP_Post $post )

Displays the post thumbnail caption.

Parameters

Name Type(s) Default Value Description
$post integer | WP_Post null

Optional. Post ID or WP_Post object. Default is global $post.

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.