Trushiv AI Post Generator
Generate WordPress posts with Claude AI for content and OpenAI for featured images.
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/trushiv04/trushiv-ai-post-generator/archive/refs/heads/main.zipA WordPress plugin that automatically generates complete blog posts using Claude AI (for content) and OpenAI (for the featured image), then publishes them to your site — all from a single topic input.
Features
- One-click post generation from just a topic
- Content written by Claude (title, HTML body, excerpt)
- Featured image generated by OpenAI's image model
- Image automatically uploaded to the WordPress Media Library and set as the post thumbnail
- Multi-language support (English, Gujarati, Hindi, Marathi, Tamil, Bengali)
- Choose draft or publish status, and a default category
- Live progress UI while the post is being created
Requirements
- WordPress 6.0 or higher
- PHP 7.4 or higher
- An Anthropic API key
- An OpenAI API key
Installation
- Download or unzip the
trushiv-ai-post-generatorplugin folder. - Copy the
trushiv-ai-post-generatorfolder into your WordPresswp-content/plugins/directory (or upload the zip directly via Plugins → Add New → Upload Plugin). - In the WordPress admin, go to Plugins and activate Trushiv AI Post Generator.
Setup
- Go to Trushiv AI Post Generator → Settings in the admin sidebar.
- Enter your Anthropic and OpenAI API keys.
- Choose your post status (draft / publish), language, and default category.
- Click Save Settings.
Note on WordPress 7.0+: Trushiv AI Post Generator uses its own Anthropic/OpenAI API keys and does not route through WordPress 7.0's core AI Client or Connectors system, so it works the same regardless of that feature. If you also run the official AI plugin from WordPress.org with its Connector Approvals experiment enabled, that approval list only governs plugins using WordPress's shared AI connectors — it has no effect on Trushiv AI Post Generator.
Usage
- Go to Trushiv AI Post Generator → Generate Post.
- Type a topic (for example, "Benefits of Solar Energy in India").
- Click Generate & Publish Post.
- The plugin generates the content and image, creates the post, and gives you links to edit or view it.
How It Works
- The topic is sent to Claude, which returns a structured JSON post (title, content, excerpt, and an image prompt).
- The image prompt is sent to OpenAI to generate a featured image.
- The image is uploaded to the Media Library.
- A new post is created with the generated content and image as its thumbnail.
Security Notes
- API keys are stored in the WordPress options table. Only users with the
manage_optionscapability can access the plugin pages. - All form submissions are protected with WordPress nonces.
License
This project is licensed under the GPL-2.0-or-later License — see the LICENSE file for details.
Author
Trushiv