=== RSS to Post Generator ===
Contributors: samukbg
Tags: rss, feed, post generator, content, automation
Requires at least: 5.6
Tested up to: 6.8
Stable tag: 1.1.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Automatically generate WordPress posts from RSS feeds with AI-powered content generation, automated posting, and advanced image handling.

== Description ==

RSS2Post allows you to automatically create WordPress posts from RSS feeds using AI-powered content generation. The plugin fetches content from your specified RSS feeds and generates high-quality, unique posts that you can publish directly to your WordPress site.

### Key Features

* **RSS Feed Processing**: Fetch and parse multiple RSS feeds simultaneously
* **AI-Powered Content Generation**: Generate unique, high-quality content using advanced AI
* **Automated Posting**: Schedule automatic posting every 12 hours (Pro feature)
* **Advanced Image Handling**: 
  - Support for RSS feed images
  - Automated Pexels image integration
  - WebP image conversion for better performance
* **Multi-language Support**: Generate content in 18+ languages
* **Duplicate Detection**: Intelligent duplicate post detection
* **Category & Tag Management**: Automated and manual category/tag assignment
* **Stripe Integration**: Secure payment processing for Pro upgrades
* **Generation History**: Track all generated posts with pagination
* **Free and Pro Tiers**: Flexible pricing options

### Recent Updates

* **WebP Image Conversion**: New toggle to convert all images to WebP format for better performance and faster loading
* **Enhanced Pexels Integration**: Improved automated image selection from Pexels with custom API key support
* **Stripe Subscription Sync**: Better synchronization of Stripe subscriptions with user tiers
* **Plugin Compliance**: Fixed WordPress plugin checker errors and warnings for better compatibility
* **Serviceware Model**: Adapted to WordPress.org serviceware guidelines instead of trialware

### Pro Features

* **Unlimited Article Generation**: No credit limits
* **Automated Posting**: Schedule automatic posting every 12 hours
* **Priority Support**: Get help when you need it
* **Advanced Image Options**: Full Pexels integration
* **Multi-tier Pricing**: Flexible subscription options

### Supported Languages

Generate content in: English, Spanish, French, German, Italian, Portuguese, Russian, Chinese (Simplified & Traditional), Japanese, Korean, Arabic, Hindi, Dutch, Swedish, Norwegian, Danish, Finnish

== Installation ==

### Automatic Installation

1. Go to your WordPress admin panel
2. Navigate to Plugins > Add New
3. Search for "RSS2Post"
4. Click "Install Now" and then "Activate"

### Manual Installation

1. Download the plugin files
2. Upload the `rss2post` folder to `/wp-content/plugins/`
3. Activate the plugin through the 'Plugins' menu in WordPress
4. Go to the RSS2Post settings page to configure your feeds

### With Composer (for developers)

1. Navigate to your WordPress plugins directory: `cd wp-content/plugins`
2. Clone the repository: `git clone https://github.com/samukbg/Rss2Post.git`
3. Navigate into the plugin directory: `cd rss2post`
4. Install dependencies: `composer install`
5. Activate the plugin through WordPress admin

== Configuration ==

### Initial Setup

1. **WordPress Credentials**: Enter your WordPress username and application password
2. **RSS Feeds**: Add RSS feed URLs (one per line)
3. **Image Settings**: Choose between RSS images, Pexels images, or no images
4. **Language**: Select your preferred content language
5. **Categories & Tags**: Configure automatic assignment

### Application Password Setup

1. Go to Users > Profile in your WordPress admin
2. Scroll to "Application Passwords" section
3. Create a new application password for RSS2Post
4. Copy the generated password to the plugin settings

== Frequently Asked Questions ==

= How do I get started? =

After activating the plugin, go to the RSS2Post settings page in your WordPress admin panel. Enter your WordPress credentials, add RSS feed URLs, and start generating posts.

= Is there a free version? =

Yes! The free tier includes 10 post generations. You can upgrade to Pro for unlimited generations and automated posting.

= What image sources are supported? =

RSS2Post supports:
- Images from RSS feeds
- Automated Pexels images (with optional custom API key)
- WebP conversion for better performance
- No images option

= How does automated posting work? =

Pro users can enable automated posting, which checks RSS feeds every 12 hours for new articles and automatically generates and publishes posts.

= What languages are supported? =

RSS2Post supports content generation in 18+ languages including English, Spanish, French, German, Italian, Portuguese, Russian, Chinese, Japanese, Korean, Arabic, Hindi, Dutch, Swedish, Norwegian, Danish, and Finnish.

= How does duplicate detection work? =

The plugin uses intelligent algorithms to detect similar posts in your WordPress site based on title similarity and content analysis.

= Can I customize categories and tags? =

Yes! You can manually select categories or let the AI automatically assign them. Tag assignment can also be automated based on content analysis.

== Screenshots ==

1. Main plugin interface with tier status and controls
2. RSS feed configuration and article selection
3. Image settings with WebP conversion option
4. Language and category configuration
5. Automated posting settings (Pro feature)
6. Generation history with pagination
7. Article preview with duplicate detection
8. Pro upgrade interface with Stripe integration

== Changelog ==

= 1.1.3 =
* **Feature**: Added customizable automated posting frequency and article limits per day.
* **Feature**: Added article size option (Small, Medium, Long) for content generation.
* **Improvement**: Enhanced tag handling to use existing tags instead of creating new ones.
* **Improvement**: Automated posting now intelligently distributes articles throughout the day based on user settings.

= 1.1.2 =
* Resolved PHP fatal error due to function redeclaration.
* Updated plugin version and minor improvements.

= 1.0.8 =
* Updated plugin version and minor improvements.

= 1.0.7 =
* **CRITICAL FIX: Automated posting now works correctly with Run Now and toggle features**
* Fixed bug where "Run Now" button in WP Cron Events did not post any content
* Fixed bug where disabling/re-enabling automated posting did not trigger immediate posting
* **CRITICAL FIX: RSS feeds now post reliably across all cycles**
* Fixed critical GUID tracking bug that prevented feeds from posting after first cycle
* Plugin now only marks articles as "processed" after they are successfully posted
* Feeds that don't post in one cycle will now correctly post in the next cycle
* Enhanced logging to track which feeds successfully posted articles
* **NEW: Post2Podcast cross-promotion section** - Discover our companion podcast creation plugin

= 1.0.6 =
* **Implemented round-robin article distribution**: Automated posting now fairly distributes articles across all RSS feeds
* Fixed issue where high-frequency feeds would dominate the posting queue
* Articles are now selected in rotation: Feed1→Feed2→Feed3→Feed1→Feed2→Feed3, ensuring equal representation
* Enhanced logging to show which feed each article comes from
* Maximum 6 articles per automated run, distributed evenly across all configured feeds

= 1.0.5 =
* **Fixed automated posting RSS feed sync bug**: Automated posting now correctly processes all RSS feed URLs, not just the first one
* Added automatic RSS feed synchronization when feeds are modified while automation is enabled
* Improved feed management with real-time updates to automated posting configuration
* Enhanced logging for automated feed updates to help with debugging
* Users no longer need to toggle automation off/on when adding new RSS feeds

= 1.0.4 =
* Fixed Stripe payment redirect security issue
* Replaced nonce-based validation with proper Stripe session verification
* Improved payment flow reliability for both test and production modes
* Enhanced security validation for payment redirects
* Better error handling for invalid payment sessions

= 1.0.3 =
* Fixed WordPress.org review compliance issues
* Updated contributor username for proper plugin attribution
* Upgraded Stripe PHP library to latest version (v17.5.0) for security
* Removed inline JavaScript and implemented proper wp_enqueue_script patterns
* Added comprehensive external services documentation (Pexels API, AI service, Stripe)
* Enhanced security with proper nonce verification for all user inputs
* Improved data sanitization using WordPress best practices
* Fixed potential security vulnerabilities in GET/POST parameter handling

= 1.0.0 =
* Initial release with full feature set
* AI-powered content generation
* Multi-language support (18+ languages)
* Advanced image handling with Pexels integration
* WebP image conversion support
* Automated posting for Pro users
* Stripe payment integration
* Duplicate detection system
* Generation history with pagination
* WordPress plugin compliance improvements
* Enhanced subscription synchronization
* Serviceware model implementation

== Upgrade Notice ==

= 1.1.1 =
This update includes general plugin improvements and version increment.

= 1.0.8 =
This update includes general plugin improvements and version increment.

= 1.0.7 =
CRITICAL UPDATE: Fixes major bugs affecting automated posting reliability. If you experienced issues with "Run Now" not working, disable/re-enable not posting content, or feeds stopping after the first cycle, this update resolves all these problems. Highly recommended for all Pro/Lifetime users.

= 1.0.6 =
Critical update for users with multiple RSS feeds! Implements fair round-robin distribution so all feeds get equal representation in automated posting. If you have multiple feeds (e.g., politics, entertainment, sports), this ensures each feed gets posts, not just the most frequently updated one.

= 1.0.5 =
Important fix for automated posting with multiple RSS feeds. This update ensures all RSS feeds are processed correctly in automated mode, not just the first one. Highly recommended for all Pro/Lifetime users using the automated posting feature with multiple feeds.

= 1.0.4 =
Critical fix for Stripe payment redirects. Resolves "Security check failed" error during payment processing. Recommended for all users accepting payments.

= 1.0.1 =
Important security and compliance update. Addresses WordPress.org review requirements including security improvements, library updates, and proper external service documentation.

= 1.0.0 =
Initial release of RSS2Post with comprehensive RSS-to-post generation capabilities, AI content creation, automated posting, and advanced image handling.

== External services ==

RSS2Post relies on the following external services to provide its functionality:

= AI Content Generation Service =

RSS2Post connects to an external service at `https://rss2post.fly.dev` for AI-powered content generation. The plugin only communicates with this service when you explicitly generate posts.

**What is sent:** RSS article titles and descriptions, your WordPress site URL, selected language preferences, and image preferences.
**When:** Only when you manually generate posts or when automated posting is enabled (Pro feature).
**Terms of Service:** Available at the service endpoint
**Privacy Policy:** The service only processes data necessary for content generation and does not store personal information

= Pexels API =

When the Pexels image option is selected, RSS2Post connects to the Pexels API to search and retrieve stock images for your posts.

**What is sent:** Search keywords extracted from article titles to find relevant images.
**When:** Only when Pexels is selected as the image source and posts are being generated.
**Terms of Service:** https://www.pexels.com/terms-of-service/
**Privacy Policy:** https://www.pexels.com/privacy-policy/

= Stripe Payment Processing =

Pro subscriptions are processed securely through Stripe. RSS2Post does not store payment information.

**What is sent:** Payment information for subscription processing.
**When:** Only when upgrading to Pro through the plugin interface.
**Terms of Service:** https://stripe.com/legal
**Privacy Policy:** https://stripe.com/privacy

== Privacy Policy ==

**Data Sent to External Services:**
- RSS article titles and descriptions
- Your WordPress site URL
- Selected language preferences
- Image preferences

**Data NOT Sent:**
- Personal information beyond what's necessary for post generation
- WordPress passwords (only application passwords for posting)
- Site content unrelated to RSS processing

== Support ==

For support, feature requests, or bug reports:
- GitHub: https://github.com/samukbg/Rss2Post
- Plugin support forum on WordPress.org

== Technical Requirements ==

* WordPress 5.6 or higher
* PHP 7.4 or higher
* Active internet connection for AI content generation
* WordPress REST API enabled
* Cron functionality for automated posting (Pro feature)

== Developer Information ==

RSS2Post is developed as a "Serviceware" plugin in compliance with WordPress.org guidelines. The plugin code is fully GPL-compliant and human-readable, while connecting to an external AI service for content generation.

**External Service:** https://rss2post.fly.dev
**Service Model:** Serviceware (connects to external AI content generation service)
**Payment Processing:** Stripe (secure, PCI-compliant)

== Credits ==

* AI content generation powered by advanced language models
* Image integration via Pexels API
* Payment processing by Stripe
* WebP conversion for optimized performance