Do you need to add captions to your featured images in WordPress?
Captions are a great way to add context and background information to your images. However, many WordPress themes don’t display captions for a post’s featured image.
In this article, we will show you how to display captions for your featured images in WordPress.
Why Add Captions to Featured Images in WordPress?
Almost all WordPress themes come with built-in support for featured images and show them across many different areas of your WordPress website.
Adding a featured image to your post can make it look more appealing, which will often get you more clicks and engagement. To learn more, check our guide on how to add featured images or post thumbnails in WordPress.
When you upload a featured image, you have the option to add a caption, along with other information, such as the image alt text.
However, your theme may not show this caption to visitors.
With that being said, let’s see how you can add captions to featured images in WordPress using a plugin.
Adding Captions to Featured Images in WordPress
The best way to show featured image captions is by using FSM Custom Featured Image Caption. First, you will need to install and activate the plugin. If you need help, then please see our guide on how to install a WordPress plugin.
Upon activation, you need to go to the Settings » FSM Custom Featured Image Caption page to configure the plugin.
The default settings should work well for most websites.
However, if you want to show featured image captions on the front page of your WordPress blog, then you will need to check the ‘Show image captions in lists’ box.
For this guide, we will leave the ‘Default Class’ option selected. However, if you would like to style the caption using your own custom CSS, then you should select either ‘Custom Class’ or ‘Custom Style’.
When you are happy with the settings, click on the ‘Save Changes’ button.
You’re finished! Now, if you visit your WordPress website, you will see the featured image captions in action.
We hope this tutorial helped you learn how to add captions to your featured images in WordPress. You may also want to learn how to choose the best web design software or check out our expert picks for the best drag and drop WordPress page builders.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.
Anonimus says
Thanks
WPBeginner Support says
You’re welcome
Admin
Zlatev says
Built-in in 4.6 –
Chris says
How?
Frank says
no alt text????
zaib azhar says
in which file?
Moyen says
Hello,
I tried to get the featured image by calling the specific post ID and get_post function but everything is okay except featured image. It does not show featured image.
is there problem to call by post ID and get_post(); ?
my code?
// custome template (community)
post_title; ?>
post_content; ?>
Please any idea?
WPBeginner Support says
We are sorry we can not see the code. You can put your code in http://pastebin.com/ and then share the link in the comment.
Admin
Sabir says
This is very great and very helpful. Thank you so much!
Trisha says
Thank you for explaining this! I just needed to add the image captions and spent a lot of time searching for a solution…..I found a lot of other answers on the WP support forum, but none of them explained how featured images are stored……such a simple thing now that I understand.
Vali_REK says
Hello, great post.
Please explain if I can do that in other website.
I d like to show article or category from wordpress blog on opencart website.
Thank you
WPBeginner Support says
You can fetch WordPress content into OpenCart website using RSS Feed.
Admin
Aneas Nemorosus says
Where can I buy you a coffee????
Editorial Staff says
You can send us a donation using the forms here:
https://www.wpbeginner.com/wpbeginner-needs-your-help/
Admin
Mike says
I still don’t know what or where the “loop” is. Sorry.
Yannick says
Sry, I don´t rly get it…
In which loop exactly do i have to paste the code?
Maybe it´s just me being brain-afk, sry for that.
Editorial Staff says
In the loop where you want to display thumbnails with captions. This could be your single.php file, or any other files.
Admin
Dejan says
Thank you for this!!!
Jhon Edison Bueno Martinez says
Thanks a lot, I have been looking for this and this is the best and simple explanation of how to add the image caption for featured images.
Thanks
Editorial Staff says
Use this article:
https://www.wpbeginner.com/wp-themes/how-to-display-custom-fields-outside-the-loop-in-wordpress/
Admin
tonilehtimaki87 says
Short neat and to the point. Only critic goes for not providing example output for the short article. For other readers: Remember to read the related posts!
Gary says
How can I style the caption?
It is rendering the caption line outside of the DIV class in the source code? What am I doing wrong.
Thanks in advance,
Gary
Editorial Staff says
You can wrap the echo content in a div of its own.
Admin
t.diaz says
I have been banging my head against a wall for about 4 hours trying to figure out how to wrap the echo content in its own div. (PHP noob here).
Can you give me an example of how it would look to wrap the div on that echo?
Editorial Staff says
Do it like this:
echo ‘open div here’ . get_post(get_post_thumbnail_id())->post_excerpt . ‘close div here’;
karen says
This is great. Very helpful. Thank you so much! But it would really be helpful to show a screenshot of the result.
Bronson says
This little gem comes in handy when wanting to spruce up most of the free themes out there… nice, quick and easy.