=== AI FAQ Builder ===
Contributors: yodsira
Tags: faq, schema, structured data, ai, accordion
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Generate FAQ blocks from the article you already wrote: five real questions and answers, a native zero-JS accordion and automatic FAQPage JSON-LD.

== Description ==

FAQ rich results expand your snippet - but writing questions nobody asked is a chore, and most FAQ plugins stop at the accordion. AI FAQ Builder closes the loop:

* **Questions from your own content.** The generator reads the article title and text, then produces five questions that genuinely follow from it - not generic filler.
* **Native accordion.** The block renders with <details>/<summary> - zero frontend JavaScript, accessible by default, SEO-friendly.
* **FAQPage JSON-LD included.** The markup is emitted automatically - and only on pages where the FAQ block actually exists.
* **Editable before publishing.** Every question and answer is a plain input; nothing goes live until you add the block.
* **Your key, your tokens.** Any OpenAI-compatible endpoint: OpenAI, OpenRouter, Ollama.

The free version includes 5 generations per day. Pro adds unlimited generations, extended answers, generation from real reader comments, WooCommerce product FAQ, tone and language control, and one-click export into Schema Forge Pro.

== Installation ==

1. Upload the `ai-faq-builder` folder to `/wp-content/plugins/` or install the ZIP via Plugins - Add New.
2. Open Settings - AI FAQ Builder, add your API base URL and key.
3. Edit any post: the "AI FAQ Builder" metabox sits in the sidebar.

== Frequently Asked Questions ==

= Does the accordion need JavaScript? =

No. <details>/<summary> is native HTML - it works without any JS and stays accessible.

= Where is the JSON-LD output? =

In the <head> of pages that contain the FAQ block. Remove the block and the markup disappears.

== Changelog ==

= 1.0.0 =
* Initial release: FAQ block, generator with JSON fallback parsing, FAQPage JSON-LD.
