Image caption

Hi, I am designing a site, I added a figure with the featured image to my template content-single.php, I want to add the figcaption with the title or the description of the featured image. How can I do that?

There are lots of tutorials around for this. Since it is not really Roots specific, go check out the WP support forum or stackoverflow for some code and come back if you run into an issue with implementation with Roots.

Thank you Chriscarr, I forgot to mention newbie question here :109:

I found this:

<figcaption><?php echo get_post(get_post_thumbnail_id())->post_excerpt; ?> </figcaption>

There’s a full explanation here:

Hi Marbaque

Maby this is what you are looking for.

http://codetidy.com/7682/