sandywp / plugins / featured-image-from-content
Featured Image from Content
AI Featured Image Generator
Automatically set the featured image from the first content image, or generate one with OpenAI if none exists.
Ready in seconds.
v1.8 300+ installs WP 5.2+ PHP 5.6+

What you get inside
1 screen-
Plugin settings page where you can select post types and OpenAI API key configuration.
About this plugin
Featured Image from Content is a lightweight and powerful WordPress plugin that automatically sets the featured image (post thumbnail) using the first image found inside your post content.
NEW: If your post does not contain any image, the plugin can automatically generate a featured image using OpenAI.
If you manage a blog, news website, magazine, affiliate site, or high-volume content website, manually assigning featured images to every post can be time-consuming. This plugin eliminates that manual work and ensures every post always has a visually appealing featured image.
Perfect for bloggers, agencies, developers, AI-powered websites, and automated content platforms.
Why Use This Plugin?
• Automatically assigns featured images
• AI generates featured images when none exist
• Prevents publishing posts without thumbnails
• Improves SEO and social media sharing
• Saves time and increases productivity
• Works with Posts, Pages, and Custom Post Types
• Lightweight and performance-friendly
Key Features
Automatic Featured Image Detection
The plugin scans your post content and automatically selects the first image to set as the featured image when you publish or update a post.
AI Featured Image Generation (OpenAI Integration)
If no image is found in the content, the plugin can generate a relevant featured image using OpenAI.
To use this feature:
1. Add your OpenAI API Key in the plugin settings.
2. Enable AI image generation.
3. When a post has no image, the plugin automatically generates one based on the post content or title.
This ensures every post always has a featured image.
Supports Multiple Post Types
Choose which post types (Posts, Pages, Custom Post Types) should have featured images automatically assigned or generated.
SEO Friendly
Featured images improve:
• Search engine visibility
• Social media preview appearance
• Click-through rates
• Overall content engagement
Perfect for Automated & AI Websites
Works great with:
• Auto blogging websites
• AI content generation websites
• Content importers
• News websites
• Multi-author blogs
• Affiliate marketing websites
Lightweight & Clean Code
The plugin is optimized for performance and does not add unnecessary load to your WordPress website.
How It Works
Case 1: Post Contains Image
1. Write or import content that contains at least one image.
2. Publish or update the post.
3. The plugin automatically detects the first image.
4. That image is set as the featured image.
Case 2: Post Has No Image
1. Write or import content without any image.
2. Make sure OpenAI API Key is added in settings.
3. Publish or update the post.
4. The plugin generates a relevant image using OpenAI.
5. The generated image is automatically set as the featured image.
No manual action required.
OpenAI API Setup
- Go to Settings → Featured Image from Content.
- Enter your OpenAI API Key.
- Save changes.
- Enable AI Image Generation option.
Note: OpenAI usage may incur charges based on your OpenAI account plan.
Compatibility
• Works with Gutenberg Block Editor
• Works with Classic Editor
• Compatible with most modern WordPress themes
• Compatible with popular SEO plugins
• Compatible with social sharing plugins
Use Cases
• Automatically assign featured images for bulk imported posts
• Generate AI images for text-only posts
• Ensure consistent blog archive layouts
• Maintain professional content presentation
• Improve social media previews
Questions
- Does this overwrite existing featured images?
No. The plugin only sets or generates a featured image if one is not already assigned.
- Does it work with custom post types?
Yes. You can select which post types should have automatic featured images.
- What if a post has no images?
If OpenAI API Key is configured, the plugin will generate a featured image automatically. Otherwise, no image will be assigned.
- Is the OpenAI feature mandatory?
No. The plugin works perfectly without OpenAI. AI image generation is optional.
- Does it affect website performance?
No. The plugin is lightweight and optimized for performance.
- Is it compatible with the latest WordPress version?
Yes. The plugin is regularly tested with the latest WordPress releases.
Spin up a real WordPress site in seconds.
Test plugins, build a demo, hand a client a link — then squash it and start again. No local setup, no Docker.