FAQ Block
tibi/faq renders FAQ content in an accordion layout. It supports manually authored FAQ items and items inserted from existing FAQ posts, and it enriches Yoast schema as FAQPage.
Last modified: July 9, 2026
Summary
| Item | Value |
|---|---|
| Parent block | tibi/faq |
| Manual child block | tibi/faq-item |
| FAQ post child block | tibi/faq-item-post |
| Editor title | Ofte stilte spørsmål (FAQ - Ny) |
| Source | packages/wordpress/plugins/tibi-block-library/src/faq/ |
| Styling | Reuses T2 accordion styles. |
Editor Usage
Use Ofte stilte spørsmål (FAQ - Ny) when a page needs an accordion FAQ section.
There are two ways to add questions:
| Child block | Use when |
|---|---|
tibi/faq-item |
The question/answer should be authored directly on the page. |
tibi/faq-item-post |
The question/answer should come from an existing FAQ post. |
Parent Attributes
| Attribute | Default | Purpose |
|---|---|---|
firstExpanded |
false |
Opens the first item by default when enabled. |
titleTag |
h3 |
Heading level used for item titles. |
ariaRole |
list |
Role applied to the accordion wrapper. |
templateLock |
unset | Optional block template lock behavior. |
The parent block provides firstExpanded, titleTag, and ariaRole as context to its child blocks.
Schema Behavior
The block integrates with Yoast schema:
- The page schema type is extended with
FAQPage. - Each FAQ item becomes a
Question. - Each item answer becomes
acceptedAnswer. - For
tibi/faq-item-post, the schema uses the selected FAQ post title and content.
Reference:
packages/wordpress/plugins/tibi-block-library/src/faq/inc/schema.php
Table Of Contents
tibi/faq is added to the T2 table-of-contents block list through the t2/table-of-contents/blocks filter.
QA Checklist
- Test manual FAQ items.
- Test inserted FAQ post items.
- Confirm the first item behavior matches
firstExpanded. - Confirm heading levels are correct for the page structure.
- Confirm accordion keyboard behavior still works.
- Inspect page schema when FAQ content is important for SEO.
When To Ask A Developer
Ask a developer before changing schema behavior, child block structure, heading rules, or shared T2 accordion styling.