A WordPress plugin that adds a "With Caption" style to the Featured Image block, allowing you to display the image caption below the featured image.
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.
- 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
- 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
- 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
- Node.js (v14 or higher)
- npm (v6 or higher)
-
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
To build the plugin for production:
npm run buildTo create a new release:
npm run releaseThis will:
- Build the assets
- Create a zip file in the root directory
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the GPL-2.0-or-later License - see the LICENSE file for details.
Created by Thomas Guillot