=== AIFORYA Schema Markup ===
Contributors: aiforya
Tags: schema, structured data, json-ld, rich results, seo
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 8.0
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Generate Schema.org structured data (JSON-LD) for your content to qualify for rich results in Google. No external service.

== Description ==

**AIFORYA Schema Markup** automatically adds **Schema.org structured data** (JSON-LD) to your content, so Google understands it better and can show **rich results** (stars, prices, event dates, FAQs, recipes, breadcrumbs and so on). Everything is computed on your own site.

**Everything stays on your site.** This plugin makes no network requests and requires no account or API key.

= Features =

* **Broad Schema.org catalogue** — Article, BlogPosting, NewsArticle, WebPage, Product (WooCommerce), Recipe, Event, FAQPage, HowTo, LocalBusiness, Course, JobPosting, Organization, Person, BreadcrumbList and many more.
* **Rule-based detection** — the schema type is chosen automatically from your rules, from the content type → schema type mapping, or by keyword detection. You can always pick the type manually.
* **Visual builder** — fill in the required and recommended fields of each type, with a real-time JSON-LD preview and a quality score.
* **Automatic injection** — the JSON-LD is injected into the `<head>`, read from a cache, with no impact on site speed.
* **Import from your SEO plugins** — bring your existing schemas over from Yoast, Rank Math, AIOSEO or Schema Pro, without loss.
* **Google validation** — test your schemas in Google's rich results test in one click.
* **Compatible with** — WooCommerce, ACF, Elementor, Divi.

= Privacy =

Your schemas are generated and stored on your own site. Nothing is sent anywhere, and no API key is required.

= Advanced version =

An advanced version adds AI-based detection of the optimal schema type, competitive analysis of the schemas in search results, predictions of emerging types, A/B testing and Google Search Console integration, using your own personal API key with the AI provider of your choice. See [aiforya.fr](https://aiforya.fr/extensions/schema-markup).

== Installation ==

1. Upload the `aiforya-schema-markup` folder to `/wp-content/plugins/`, or install the plugin from the WordPress Plugins screen.
2. Activate the plugin from the "Plugins" menu.
3. Open the "AIFORYA Schema Markup" menu, set the content type mapping, and generate your schemas.

== Frequently Asked Questions ==

= Do I need an API key or an account? =

No. This version runs entirely on your site, with no API key and no external service.

= How is the schema type chosen? =

By rules: your advanced rules first, then the content type → schema type mapping, then keyword detection. You can always pick the type manually.

= Does the plugin slow my site down? =

No. Generation happens in the background, then the result is cached and injected into the `<head>` read-only. No network calls happen when your pages load.

= Can I import my existing schemas? =

Yes. The Migration tab detects installed SEO plugins (Yoast, Rank Math, AIOSEO, Schema Pro) and converts their schemas into native ones.

= What happens if I uninstall the plugin? =

By default, your data is kept. To erase everything, tick the dedicated option in Settings → Advanced before uninstalling. Your WordPress content is never modified.

= Where do I get support? =

Through the support forum of this plugin on WordPress.org.

== Screenshots ==

1. Dashboard — generated schemas, coverage, quality score and the breakdown by Schema.org type, with bulk generation for every post that has no schema yet.
2. Schema management — every piece of content with its detected schema, filters by type and status, and per-item actions: view, test on Google, regenerate, delete.
3. Health Score 360° — an overall 0-100 score built on 5 axes: content coverage, average schema quality, Schema.org type diversity, share of error-free validations, and a Search Console error penalty, with a daily snapshot for the 12-month trend.
4. Visual builder — pick a Schema.org type, fill in the required and recommended fields, and watch the JSON-LD update live with its quality score before applying it to a post.
5. Type mappings — the default Schema.org type for each WordPress content type, with automatic generation on publication.
6. Optimizer — one-click re-alignment of every schema against the latest Google rules, and de-duplication that switches off competing schemas from other SEO plugins.
7. Migration — detects Yoast SEO, Rank Math, Schema Pro and All in One SEO, and imports their existing schemas in one click.
8. Settings — automatic injection into the head, cache lifetime, and the uninstall option, which keeps your data by default.

== Changelog ==

= 1.0.0 =
* Initial release: rule-based Schema.org JSON-LD generation, broad catalogue of types, visual builder, automatic injection, import from SEO plugins, Google validation.
