Create accordions in the WordPress editor using a PHP shortcode. Each <h3> becomes a title, and the following content forms that section’s panel.
-
Updated
Nov 1, 2025 - PHP
Create accordions in the WordPress editor using a PHP shortcode. Each <h3> becomes a title, and the following content forms that section’s panel.
A Gutenberg block with left and right toggleable content areas.
Add a description, image, and links to the content-toggle topic page so that developers can more easily learn about it.
To associate your repository with the content-toggle topic, visit your repo's landing page and select "manage topics."