=== ContentPen ===
Contributors: contentpen, bilaltariq
Tags: AI, content writing, SEO, blogging, content marketing
Requires at least: 5.8
Tested up to: 6.9.1
Stable tag: 1.0.12
Requires PHP: 7.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

AI-Powered SEO Content Writing Assistant

== Description ==

ContentPen is an AI-powered content writing assistant designed to help businesses create, optimize, and publish SEO-friendly blog posts at scale. By combining deep research with your brand's unique voice, ContentPen crafts high-impact articles that outperform your competition.

== Features ==

- **Brand Knowledge**: AI-powered analysis of your brand voice, unique selling points, target audience, and competitors.
- **Keyword and Title Selection**: Automated title suggestions and search intent alignment for SEO success.
- **Deep Topic Research**: In-depth SERP analysis and content gap identification.
- **Optimized Blog Outline**: Research-backed article structure with a semantic SEO approach.
- **High-Quality First Draft**: Collaborative AI agents generating comprehensive content.
- **Quality Review and Optimization**: SEO optimization to enhance article performance.
- **Final Enhancements**: Strategic linking and automated images for appealing blogs.
- **Effortless Publishing**: Seamless integration with WordPress and other CMS platforms (coming soon).

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/contentpen` directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the 'Plugins' screen in WordPress
3. Use the Settings->ContentPen screen to configure the plugin
4. Enter your API key from https://app.contentpen.ai to start using the plugin

== Frequently Asked Questions ==

= What is ContentPen? =

ContentPen is an AI-powered content writing assistant that helps businesses create, optimize, and publish SEO-friendly blog posts at scale.

= How does ContentPen work? =

ContentPen combines deep research with your brand's unique voice to craft high-impact, SEO-optimized articles. It utilizes multiple AI agents to handle tasks like brand analysis, keyword selection, topic research, content drafting, and optimization.

= Do I need an API key? =

Yes, you need an API key to use ContentPen. You can get one by signing up at https://app.contentpen.ai

== Screenshots ==

1. ContentPen settings page
2. Content generation interface
3. SEO optimization tools

== Changelog ==

= 1.0.12 =
* Fixed featured image publishing to reuse the uploaded media attachment instead of creating duplicate thumbnails.
* Fixed featured image metadata syncing so the active thumbnail attachment keeps the expected title and alt text.
* Fixed inline post image imports to preserve image alt text and use source image metadata for attachment titles.

= 1.0.11 =
* Added support for Rank Math and All in One SEO plugins

= 1.0.10 =
* Removed unused GET /posts endpoint that caused route conflicts in some wordpress versions.

= 1.0.9 =
* Fixed REST API route registration for posts endpoint to prevent routing conflicts

= 1.0.8 =
* Added fallback regex-based conversion for servers without php-xml extension
* Fixed critical error on servers missing DOMDocument class

= 1.0.7 =
* Bug fix for Gutenberg block conversion

= 1.0.6 =
* Added HTML to Gutenberg block conversion for posts

= 1.0.0 =
* Initial release

== Upgrade Notice ==

= 1.0.12 =
* Updates WordPress image publishing to preserve featured image and inline image metadata more reliably.

= 1.0.11 =
* Added support for Rank Math and All in One SEO plugins

= 1.0.10 =
* Removed unused GET /posts endpoint that caused route conflicts in some wordpress versions.

= 1.0.9 =
* Fixed REST API route registration for posts endpoint to prevent routing conflicts

= 1.0.8 =
* Added fallback regex-based conversion for servers without php-xml extension
* Fixed critical error on servers missing DOMDocument class
