Overview
FAQ Schema marks a page section as a question-and-answer list. Search engines render expandable FAQ rich results from this markup — increasing visibility and click-through rate.
Gregius Optimizer integrates with the standard WordPress Accordion block (core/accordion). Enable the FAQ toggle on any accordion and the plugin:
- Reads the question from each accordion item’s heading
- Reads the answer from each accordion item’s panel content
- Generates the correct
FAQPageJSON-LD markup in the page’s<head>

No additional configuration, code, shortcodes, or third-party services are required.
Technical Prerequisites & Blocks
- Gregius Optimizer plugin installed and activated
- A post or page containing an Accordion block (
core/accordion) with your Q&A content
Enable FAQ Schema on an accordion
Enable the toggle
- Open any post or page in the Block Editor.
- Add an Accordion block and fill in your questions and answers inside the accordion items.
- Select the accordion block wrapper (click the accordion container, not an individual item).
- In the right sidebar (Block tab), locate the FAQ Schema panel.
- Toggle “Include accordion Q&A in site’s structured data” to ON.
- Save or update the post.
FAQ structured data is generated automatically when the page loads.
How Q&A pairs are determined
Gregius Optimizer reads the accordion structure at page-render time.
Question — Extracted from each accordion item’s heading — the clickable label users see to expand the item. Write questions in natural, complete sentences for optimal search engine matching.
Answer — Extracted from every paragraph block inside the accordion panel and combined into a single answer. Only standard paragraph blocks qualify — lists, images, buttons, and other block types are excluded.
Requirement — A pair is included only when both question and answer are non-empty. Accordion items with a heading but no panel content, or panel content but no heading, are silently excluded.
Permissions
| Action | Required capability |
|---|---|
| Toggle FAQ Schema on an accordion | edit_post (on that post) |
| View structured data on frontend | None (public) |
Next Steps
Gregius Optimizer is fully open-source, transparent, and built for modern development workflows.
Available on WordPress.org: Install the plugin directly from the official in the WordPress Plugin Directory.
View on GitHub: You can review, fork, and inspect the entire codebase and core logic over at the repository on GitHub.
Documentation: Read the setup guides and technical documentation below to get started.
- Sitemap – Control which content appears in your XML sitemap
- Robots.txt – Configure crawl directives for search engines and AI bots
- Schema – Add structured data markup to help search engines understand your content
- Social Card – Control how your content appears when shared on social media and in search results.
- LLMs – Optimize your site for AI agents and large language models with an
/llms.txtfile