=== Blogr.ai – SEO Article Auto-Publisher ===
Contributors: karakhanyans
Tags: seo, content, publishing, automation, ai
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 8.0
Stable tag: 1.2.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Publish SEO articles from blogr.ai straight to your WordPress site.

== Description ==

Blogr connects your WordPress site to [blogr.ai](https://blogr.ai), the autonomous SEO content platform. Once connected, articles generated and approved in blogr publish straight to your blog — no copy-pasting.

**What it does**

* Receives articles from blogr.ai and creates them as WordPress posts
* Arrivals land as drafts (default) or go live immediately — your choice
* Downloads the featured image and any article images into your media library
* Fills in SEO title, meta description, and focus keyword for Yoast SEO and Rank Math
* Republishing an article in blogr updates the same post — never a duplicate
* Never changes the status of a post you've already touched: a republish keeps your published post published and your permalink intact

**How it works**

The plugin adds two REST endpoints under `blogr/v1` on your site. blogr.ai pushes articles to them, authenticated with an integration token only you and blogr know. The plugin never sends your content anywhere — traffic flows one way, from blogr.ai to your site.

== External services ==

This plugin receives content pushed from blogr.ai, the service you connect it to. Your WordPress site does not send data to blogr.ai; blogr.ai sends articles (and downloads their images from blogr.ai's servers into your media library) when you publish from your blogr dashboard. Use of blogr.ai is governed by its [terms of service](https://blogr.ai/terms) and [privacy policy](https://blogr.ai/privacy).

== Installation ==

1. Install and activate the plugin.
2. In your blogr.ai dashboard, open Setup → Publishing and choose WordPress.
3. Enter your site URL and copy the generated integration token.
4. In WordPress, go to Settings → Blogr, paste the token, and save.
5. Back in blogr.ai, finish the connection — it verifies your site responds before saving.

== Frequently Asked Questions ==

= Where does my content come from? =

Articles are generated in your blogr.ai account. This plugin only receives what you approve and publish there.

= Will republishing from blogr overwrite my edits? =

Republishing updates the post's title, content, and SEO fields with the latest version from blogr. The post's status, permalink, and anything else you've set in WordPress are preserved.

= Does the plugin work without Yoast or Rank Math? =

Yes. SEO fields are simply skipped when neither plugin is active.

= What happens when I uninstall? =

The plugin's settings are removed. Your posts and images stay untouched.

== Changelog ==

= 1.2.0 =
* First release on the WordPress.org plugin directory. Updates now come from WordPress.org, so the plugin's own update check against blogr.ai has been removed.

= 1.1.0 =
* Articles now arrive with categories and tags (up to 3 each, generated with the article). Terms are created on your site as needed; an article without them leaves your existing categorization untouched.

= 1.0.1 =
* Fix YouTube embeds: responsive aspect-ratio sizing that works with any theme (the previous absolute positioning could overlay the post content), and an explicit referrer policy so YouTube no longer answers with "Error 153".
* Redesigned settings screen: a live delivery status header showing the blogr.ai → site connection, synced-article stats, and a connect checklist while no token is saved.

= 1.0.0 =
* Initial release: publish endpoint with upsert-by-article, integration token auth, image sideloading, Yoast/Rank Math support.
