Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/martatorredev/mtdev-featured-image-caption/archive/refs/heads/main.zipAdds accessible captions under the featured image in single posts using the Gutenberg block editor.
Description
MTDev Featured Image Caption automatically adds the image caption below the Featured Image block (core/post-featured-image) on single posts. It uses the caption field from the WordPress media library and ensures accessible markup by linking the figure and figcaption through aria-describedby.
Features
- Works with block themes (Full Site Editing).
- Automatically displays the media caption under the featured image.
- Accessible HTML structure with
figureandfigcaption. - Lightweight – no extra dependencies or admin settings.
- Developer-friendly and easy to extend.
Installation
- Upload the plugin folder to
/wp-content/plugins/or install via the Plugins screen. - Activate MTDev Featured Image Caption through the Plugins menu.
- Edit any post, set a featured image with a caption in the Media Library.
- View the post on the frontend to see the caption displayed below the featured image.
Frequently Asked Questions
Does it work with classic themes?
No, this plugin targets block themes using the core/post-featured-image block.
Can I use it on pages or custom post types?
Yes — you can modify the condition inside the plugin to include other post types.
Changelog
1.0.0
- Initial release: accessible captions for featured images.
Upgrade Notice
1.0.0
First stable version.
Credits
Developed by Marta Torre