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

link 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.

link 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.

link 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.

link Schema Behavior

The block integrates with Yoast schema:

Reference:

link Table Of Contents

tibi/faq is added to the T2 table-of-contents block list through the t2/table-of-contents/blocks filter.

link QA Checklist

link When To Ask A Developer

Ask a developer before changing schema behavior, child block structure, heading rules, or shared T2 accordion styling.