WordPress – How to display the caption of a featured image
At the end of your functions.php template file add this code:
Where ever you want to display the caption of the featured image just use the function “the_post_thumbnail_caption()”. See below for an example.
*Please note the 3rd line should really be just a continuation of the 2nd line with a space between the “ and the height=… *