Install
Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/thomasguillot/simple-featured-image-caption/releases/download/1.0.0/simple-featured-image-caption.zipA WordPress plugin that adds a "With Caption" style to the Featured Image block, allowing you to display the image caption below the featured image.
Description
This plugin extends the WordPress Featured Image block by adding a new style option that displays the image caption below the featured image. It's perfect for photographers, bloggers, and content creators who want to add context to their featured images.
Features
- Adds a "With Caption" style to the Featured Image block
- Automatically displays the image caption from the Media Library
- Maintains WordPress native caption styling
- Lightweight and simple to use
Installation
- Download the latest release from the Releases page
- Upload the plugin files to the
/wp-content/plugins/simple-featured-image-captiondirectory, or install the plugin through the WordPress plugins screen directly - Activate the plugin through the 'Plugins' screen in WordPress
Usage
- Edit a post or page
- Add a Featured Image block
- In the block settings sidebar, select the "With Caption" style
- The image caption will automatically appear below the featured image
Development
Prerequisites
- Node.js (v14 or higher)
- npm (v6 or higher)
Setup
-
Clone the repository:
git clone https://github.com/yourusername/simple-featured-image-caption.git cd simple-featured-image-caption -
Install dependencies:
npm install -
Start development:
npm start
Building
To build the plugin for production:
npm run build
Creating a Release
To create a new release:
npm run release
This will:
- Build the assets
- Create a zip file in the root directory
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the GPL-2.0-or-later License - see the LICENSE file for details.
Credits
Created by Thomas Guillot
Releases
1 release. Each count is every asset in that release; expand a row for the breakdown.