Skip to content

bugraskl/wordpress-post-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WordPress AI Post Generator

A powerful, user-friendly desktop application to generate and publish blog posts to your WordPress site using advanced AI models (Google Gemini, OpenAI ChatGPT, xAI Grok).

🚀 Features

  • Multi-Model AI Support: Choose between Google Gemini, OpenAI's ChatGPT, and xAI's Grok.
  • Dynamic Model Listing: Automatically fetches available models from your API provider.
  • Direct WordPress Integration:
    • Publish as Draft or Public.
    • Assign Categories and Tags fetched directly from your site.
    • Automatically uploads and sets Featured Images from a URL.
  • Content Optimization:
    • Generates SEO-friendly titles and structure.
    • Automatically creates a meta description (Excerpt).
    • Produces clean, semantic HTML content.
  • Secure Storage: API keys and WordPress credentials are encrypted and stored locally using standard cryptography.
  • Modern UI: A clean, dark-mode interface built with HTML/CSS/JS and a Python Flask backend.

🛠️ Installation

  1. Clone the repository:

    git clone https://github.com/bugraskl/wordpress-post-generator.git
    cd wordpress-post-generator
  2. Install dependencies:

    pip install -r requirements.txt
  3. Run the application:

    python app.py
  4. Open in Browser: The application will automatically start. Navigate to http://127.0.0.1:5000 in your web browser.

⚙️ Configuration

  1. Go to the Settings tab.
  2. WordPress Configuration:
    • Site URL: Your WordPress site URL (e.g., https://example.com).
    • Username: Your WordPress username.
    • Application Password: Generate this in your WordPress User Profile > Application Passwords.
  3. AI API Keys:
    • Enter keys for the services you wish to use (Gemini, OpenAI, xAI).
  4. Click Save Settings.

📝 Usage

  1. Go to the Create Post tab.
  2. Write a Prompt: Describe the blog post you want to create (e.g., "A complete guide to learning Python for beginners").
  3. Cover Image (Optional): Paste a URL for an image. The tool will download it, upload it to your WordPress Media Library, and set it as the featured image.
  4. Select Provider: Choose Gemini, ChatGPT, or Grok.
  5. Select Model: Pick a specific model from the dropdown.
  6. Select Taxonomies: Choose relevant Categories and Tags.
  7. Click Generate Content.
  8. Preview & Edit: Review the generated content, title, and excerpt in the pop-up modal.
  9. Click Publish to WordPress.

🔒 Security Note

  • Credentials are stored in settings.json and are encrypted using a locally generated secret.key.
  • Never share your secret.key or settings.json file.
  • These files are added to .gitignore to prevent accidental commits.

📄 License

This project is open-sourced under the MIT License. See the LICENSE file for details.

About

AI-Powered WordPress Content Creation & Publishing (Gemini/ChatGPT/Grok)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published