Skip to content

Syed-Arieb/Wordpress-Post-Classifier-Gemini

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Post Classifier AI for WordPress

License: GPL v2 WordPress: 6.0+

Post Classifier AI is a professional-grade WordPress plugin that leverages the Google Gemini 2.5 Flash Lite API to automate post categorization. Built with a focus on clean architecture and performance, it removes the manual effort of tagging content while ensuring your site's taxonomy remains consistent.

πŸš€ Key Features

  • Automated Taxonomy: Analyzes post content on publish and suggests 3 highly relevant categories.
  • Smart Cleanup: Automatically removes the default "Uncategorized" tag if AI categories are found.
  • Optimized Performance: Trims content before API transmission to ensure fast execution and lower latency.
  • Secure Configuration: Dedicated Settings UI for API Key management using the WordPress Settings API.
  • Loop Protection: Implements native WordPress hooks safely to prevent recursive save issues.

πŸ› οΈ Technical Implementation

This project was designed using Object-Oriented Programming (OOP) principles and follows WordPress Coding Standards:

  • Service Layer: Uses wp_remote_post for secure communication with external APIs.
  • Taxonomy Logic: Uses term_exists and wp_insert_term to dynamically manage categories without duplication.
  • Data Integrity: Implements rigorous sanitization and capability checks (manage_options).

πŸ“¦ Installation

  1. Download or clone this repository into your wp-content/plugins/ directory.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. Navigate to Settings > Post Classifier AI and enter your Google Gemini API Key.
  4. Publish a new post and watch the AI categorize your content in real-time.

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request. This project follows the GPLv2 License.


Developed by Syed Muhammad Arieb - Engineering solutions at the intersection of AI and the Open Web.

About

Automate WordPress content organization with AI. Features smart category assignment, default tag cleanup, and secure API management.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages