This plugin gives editors the option to generate FAQ Schema JSON-LD markup for any WordPress core Accordion block. This markup will be automatically appended to the page footer. All non-text content inside accordion items is ignored.
Note that at the time of writing, the Accordion block is 'experimental' and requires the Gutenberg plugin with .
I made a suggestion on the Accordion Block issue thread to add this functionality to core, but I'm not confident enough to try and implement it myself. Obviously, if it helps, anybody is more than welcome to take this and add it directly to Gutenberg if they wish 👍.
- Grab the latest .zip from the Releases section on GitHub
- Upload it to your site using the Add Plugin button on the Plugins page
- Activate the Accordion FAQ Schema Toggle plugin
- Add an Accordion block to your page
- Enable the 'Output FAQ Schema' toggle in the Accordion block's Settings panel.