How to add a caption to the WordPress Featured Image block

The WordPress site editor showing the caption control for the Featured Image block within the Single Posts template.

Adding a featured image caption is a common task for creators who want to provide context or photo credits to their WordPress posts. You’ve selected the perfect featured image and want to display it prominently at the top with its caption below, just like popular news magazines do.

However, when you try to do this, you may notice that the core WordPress Featured Image block doesn’t have a caption option by default. So, how do you add a caption to the WordPress featured image in a block theme? In this article, we’ll show you the easiest way using the Twentig plugin, which enhances the core blocks you already use.

Why add a caption to your featured image?

A well-placed caption is a small detail that delivers significant benefits:

  • Photo attribution: Provide proper credit to the photographer or image source, which is often a legal or ethical requirement.
  • Add context: Briefly explain what the image shows, who is in it, or how it connects to your article.
  • Boost SEO: Captions provide valuable context for search engines. As Google’s documentation on image best practices states, “Google extracts information about the subject matter of the image from the content of the page, including captions and image titles.” Using descriptive captions helps Google understand and rank your content better.
  • Improve accessibility: Captions offer extra information for visually impaired users who rely on screen readers, working alongside your image’s alt text to create a more accessible experience.

This is a standard practice in professional publications. For example, notice how The New Yorker uses a simple, effective caption for their featured image.

An article on The New Yorker website showing a featured image with its caption, which acts as a photo credit, displayed underneath.
A featured image from a New Yorker article with the photo credit displayed as a caption.

How to add a caption to the WordPress Featured Image block

While the core Featured Image block lacks a caption setting, the Twentig plugin adds this essential control in a familiar way. It uses the same “Add caption” icon from the standard Image block, placing it directly in the Featured Image block’s toolbar. Adding a caption this way is a simple, two-step process.

First, ensure you have the Twentig plugin installed and activated.

Step 1: Enable the caption in your theme’s template

Let’s start by enabling the caption option in the template that displays your posts. For most themes, this will be the “Single Posts” template.

  1. From your WordPress dashboard, navigate to Appearance → Editor.
  2. Open your Templates and select the Single Posts template to edit it.
  3. If your template doesn’t already have one, insert a Featured Image block where you want it to appear.
  4. Click the Featured Image block to select it.
  5. In the block’s top toolbar that appears, you’ll see a new “Add caption” icon added by Twentig. Click the icon to enable the caption.
The WordPress editor showing the Featured Image block with the "Add caption" icon selected in the block toolbar.
The “Add caption” icon in the Featured Image block’s toolbar lets you enable the caption display.

That’s it for the setup! This template is now configured to display captions for any post that uses it.

Step 2: Add the caption text to your featured image

Now, you can add a unique caption to the featured image on any individual post.

  1. Open a post in the block editor.
  2. In the Post settings sidebar on the right, locate the Featured Image panel.
  3. Click on the image to open the Media Library.
  4. In the Attachment Details section on the right, type your text into the Caption field.
  5. Simply close the Media Library modal. WordPress automatically saves the caption text with the image.
The WordPress Media Library with the Caption field filled out in the attachment details sidebar for a selected featured image.
In the Media Library, add your text directly into the “Caption” field for the selected featured image.

Now, view your post on the front end. The caption will be displayed right below your featured image.

How to add a caption to other images

Beyond the featured image, you’ll notice that magazine sites, like Vogue, often use captions on all their images. This practice creates a more informative and polished reading experience.

An article on the Vogue website featuring an image of a restaurant interior with a descriptive caption and photo credit.
Vogue uses captions on all its article images to provide context and credit.

You can easily do the same in WordPress. For any standard Image block inside your post content, click the “Add caption” icon in the toolbar. A field will appear below the image where you can type your caption directly in the editor.

An image block selected inside the WordPress editor with its "Type your caption here" placeholder text below.
The “Add caption” icon in the Image block’s toolbar enables the caption, which you can then type directly underneath the image.

Styling your featured image caption

The appearance of your caption (its font, size, and color) is controlled by your block theme’s theme.json file. If you’re a theme developer or an advanced user comfortable with code, you can customize the style for the caption element. Because this targets the core caption element, these styles will apply consistently to all blocks that use a caption, including the Image, Featured Image, Gallery, Video, Audio, Table, and Embed blocks.

Here’s an example snippet from a theme.json file that styles all captions:

					
{
	"version": 3,
	"styles": {
		"elements": {
			"caption": {
				"color": {
					"text": "#666666"
				},
				"typography": {
					"fontSize": "0.875rem",
					"lineHeight": "1.4"
				}
			}
		}
	}
}

Unlock more power in the block editor

Adding a caption to a featured image should be a seamless part of your publishing workflow. While this option isn’t available in the core Featured Image block by default, Twentig integrates a familiar “Add caption” icon directly into the block toolbar to make the process intuitive and simple. This is just one of many ways the Twentig plugin enhances the core WordPress blocks you use every day.

Diane Collet Avatar

About the author

Start building your website with Twentig. It’s easy and free.