Add [subpages_expand] to any parent page. All child pages' titles are shown as links that expand to content when clicked
As of April 2026, Subpage as Expandable Text Shortcode is a WordPress text plugin with 80 active installations and a 5/5 rating from 2 reviews. It has been downloaded 4.5K+ times in total. Requires WordPress 3.4.1+ and PHP false+. Available on WordPress.org since 2012. Last updated 1 year ago — may have compatibility concerns. Top alternative: String locator.
Intended users: editors, authors, contributors
This plugin will allow you to display the content of subpages as expandable links.
Simply add [subpages_expand] to any parent page. The titles of each of the subpages will be displayed there as clickable links. When the user clicks the link, it will expand, displaying the content of that child page.
Clicking the title again will collapse the content.
Plugin Icon (CC BY 3.0) by DinosoftLabs
| WordPress | 3.4.1+ requiredTested up to 6.7.5 |
| PHP | false+ required |
1.20 Verified it works on WP 6.7.2; fixed embarrassing typo
1.19 Verified it works on WP 5.4.2
1.17 Verified it works on WP 4.8.0. Code cleanup.
1.15 Verified it works on WP 4.6.1
1.13 Added support for WP 4.5
1.11 Button only appears on page editor now (shortcode doesn’t work on posts, so there’s no reason to show it there) – tested up to 4.3
1.10 Added button to page editor * Added l10n support to button
1.09a Not all child …
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.