=== Mountain Stack FAQ Manager ===
Contributors: rajat005
Tags: faq, schema, gutenberg, rest-api, accordion
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.2
Stable tag: 1.0.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Create and display SEO-friendly FAQs with Gutenberg blocks, shortcodes, REST API support, and automatic schema markup.

== Description ==

Mountain Stack FAQ Manager is a lightweight WordPress plugin for creating and displaying FAQ sections with:

* Custom post type and taxonomy-based categories
* Gutenberg block with live preview
* Shortcode support with theme template overrides
* REST API endpoints for headless integrations
* Automatic FAQPage JSON-LD schema markup
* Client-side FAQ search and responsive accordion layout

== Installation ==

1. Upload the `mountain-stack-faq-manager` folder to `/wp-content/plugins/`
2. Activate the plugin through the Plugins menu in WordPress
3. Go to Mountain Stack FAQ Manager in the admin menu to add categories and FAQs
4. Display FAQs using the block or `[quickfaq category="general"]` shortcode

== Development ==

This plugin includes human-readable source code for all compiled block assets.

= Source location =

* Block editor JavaScript and SCSS: `src/`
* Built block assets: `blocks/quickfaq/`
* Frontend PHP templates: `templates/`
* Admin CSS/JS: `admin/css/` and `admin/js/`

= Build tools =

The Gutenberg block uses `@wordpress/scripts`.

Requirements:

* Node.js 18+
* npm

Build steps:

1. `cd` into the plugin directory
2. Run `npm install`
3. Run `npm run build`

The build command compiles `src/index.js`, `src/style.js`, and `src/view.js` into `blocks/quickfaq/`.

= Third-party libraries =

* `@wordpress/scripts` (dev dependency) — WordPress block build tooling. https://www.npmjs.com/package/@wordpress/scripts

== Frequently Asked Questions ==

= How do I display FAQs on a page? =

Use the Mountain Stack FAQ Manager Gutenberg block or shortcode: `[quickfaq category="shipping"]`

= Can I customize the shortcode HTML in my theme? =

Yes. Copy template files from `templates/` into `your-theme/quickfaq/` and customize them. See QuickFAQ → How to Use in the admin for details.

= Does this plugin output schema markup? =

Yes. FAQPage JSON-LD schema is generated automatically when schema is enabled in settings or per display.

== Changelog ==

= 1.0.1 =
* Hardened JSON-LD output escaping.
* Restricted public REST API responses to active FAQs and categories.
* Documented source code and build steps in the readme.
* Updated plugin display name to Mountain Stack FAQ Manager.

= 1.0.0 =
* Initial release with categories, FAQ management, block, shortcode, REST API, schema, search, and accordion layout.

== Upgrade Notice ==

= 1.0.1 =
Security and review updates for WordPress.org submission.

= 1.0.0 =
Initial public release.
