=== GBX Blog Suite ===
Contributors: Daniyal Hassan
Tags: api, automation, blogging, seo, internal links, content
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
Stable tag: 1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

== Description ==

GBX Blog Suite is a comprehensive blog management plugin that combines two powerful features:

1. **API Publisher** - Automatically fetches content from an external API and publishes it as WordPress blog posts with SEO support
3. **Blog Settings** - unified interface for essential blog configurations including Display Name, Avatars, reCAPTCHA, and Author visibility.

== Features ==

**API Publisher:**
* 🔌 Fetch data from API using cURL
* 📝 Auto-create WordPress blog posts
* 🖼 Download & attach featured images
* 🗂 Auto-create & assign categories
* 🔍 SEO meta support (All in One SEO)
* ⚙ Manual publish button in admin
* ⏱ Daily scheduled auto-publishing (WP-Cron)
* 🔐 Secure admin actions with nonce verification

**Smart Internal Links:**
* 🔍 Smart content analysis for linking opportunities
* 📊 Match strength indicators (Strong/Normal)
* ✨ One-click link insertion
* 🎯 Automatic anchor text detection
* 📈 SEO boost through strategic internal linking

**Blog Settings:**
* 👤 **Display Name:** Easily update your public display name
* 🖼️ **Local Avatar:** Upload custom user avatars directly to your library
* 🤖 **reCAPTCHA v2:** Integrated "I'm not a robot" checkbox for Contact Form 7 (no extra plugins needed)
* 🕵️ **No Author Mode:** Completely hide author information from the frontend for anonymity

== Supported SEO Plugins ==

The plugin automatically detects and supports:
* ✅ All in One SEO

== Installation ==

1. Upload the `gbx-blog-suite` folder to `/wp-content/plugins/`
2. Activate **GBX Blog Suite** from the Plugins menu
3. Go to **GBX Blog Suite** in the admin menu
4. Configure your settings in the available tabs

== Usage ==

**Blog Settings:**
1. Navigate to Admin Dashboard → GBX Blog Suite → Blog Settings
2. Update your **Display Name** or **Local Avatar**
3. Enable **reCAPTCHA v2** for Contact Form 7 (automatically adds `[recaptcha]` support)
4. Enable **Author Display Rule** to hide author info across the site
5. Click "Save Settings" - the page will reload to confirm changes

**API Publisher - Manual Publish:**
1. Navigate to Admin Dashboard → GBX Blog Suite → API Publisher
2. Click "Fetch & Publish Post"
3. The plugin will:
   - Fetch API data
   - Create the post
   - Assign categories
   - Upload featured image
   - Apply SEO meta

**API Publisher - Enable Daily Auto-Publishing:**
1. Go to Admin Dashboard → GBX Blog Suite → API Publisher
2. Click "Enable Daily Schedule"
3. The plugin will automatically publish one post daily

**Smart Internal Links:**
1. Go to Posts → Edit any post
2. Scroll down to the "Smart Internal Links" meta box
3. Click "Analyze Content"
4. Review suggestions and click "Add Link" to insert

== API Response Format ==

Your API endpoint should return JSON in the following format:

```json
{
    "title": "Article Title",
    "description": "<p>Article content with HTML...</p>",
    "slug": "article-slug",
    "feature_img": "https://domain.com/image.png",
    "meta_title": "SEO Meta Title",
    "meta_description": "SEO Meta Description",
    "keywords": "keyword1, keyword2",
    "category": ["Category A", "Category B"],
    "article": "article-id"
}
```

== Requirements ==

* WordPress 5.8+
* PHP 7.4+
* cURL enabled on server
* All in One SEO plugin (recommended)
* Contact Form 7 (optional, for reCAPTCHA)

== Frequently Asked Questions ==

= Does this plugin support multiple SEO plugins? =
Currently, the plugin supports All in One SEO. Support for other SEO plugins may be added in future versions.

= Can I schedule posts hourly? =
Currently daily scheduling only. Custom intervals can be added in future updates.

= How does Smart Internal Links work? =
The plugin analyzes your post content and compares it with titles of other published posts to find relevant linking opportunities. It uses 2-word and 3-word phrase matching for accuracy.

= Can I use this for AI-generated content? =
Yes! The API Publisher is ideal for AI-generated content and auto-blogging workflows.

= How do I use the reCAPTCHA v2? =
Enable it in the "Blog Settings" tab. Then, add the `[recaptcha]` tag to your Contact Form 7 forms. You must typically configure your keys in the CF7 Integration settings unless defined in constants.

== Changelog ==

= 1.1 =
* Added Blog Settings tab
* Added Local Avatar upload functionality
* Added Display Name editor
* Added Native Contact Form 7 reCAPTCHA v2 integration (replaces v3)
* Added "No Author Anywhere" privacy mode
* Improved Admin UI with professional card layout

= 1.0 =
* Initial release
* Combined Remote Post Publisher and Smart Internal Links
* Tabbed admin interface
* API fetch via cURL
* Auto post creation
* Featured image upload
* Category assignment
* SEO plugin integration
* Manual & scheduled publishing
* Smart internal link analysis
* One-click link insertion

== License ==

This plugin is licensed under the GPLv2 or later.

== Author ==

Daniyal Hassan
