BT AutoPost
Auto-generate WordPress posts using Claude AI (content) and OpenAI (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/trushiv4/bt-autopost/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 5.0 or higher
- PHP 7.4 or higher
- An Anthropic API key
- An OpenAI API key
Installation
- Download this repository as a ZIP, or clone it:
git clone https://github.com/Trushiv04/bt-autopost.git - Copy the
bt-autopostfolder into your WordPresswp-content/plugins/directory. - In the WordPress admin, go to Plugins and activate BT AutoPost.
Setup
- Go to BT AutoPost → 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 for WordPress 7.0+: If you see an error like "the openai/anthropic AI connector has not been approved for use", go to Tools → Connector Approvals in your WordPress admin. In the Approval matrix, find the BT AutoPost row and turn on the toggle for the provider you are using (e.g. OpenAI). WordPress 7.0 blocks plugin AI requests until they are explicitly approved here.
Usage
- Go to BT AutoPost → 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
Trushiv04