Plugin Directory

Test out the new Plugin Directory and let us know what you think.

Subpage as Expandible Text Shortcode

Add [subpages_expand] to any parent page. All child pages' titles are shown as links that expand to content when clicked

Q. Does this work on posts?

A. No, only on pages

Q. I added the shortcode and nothing happened!

A1. Make sure you spelled it correctly

A2. Make sure you added the shortcode to a page, not a post.

A3. Make sure your page has sub-pages.

A4. Verify that your parent page and all child pages are published (not draft or pending)

Q. My page has more than one subpage, but only one is showing up! When I click the link the other subpages are in the text that appears.

A. You have an HTML error in one of your pages. If you have mismatched div tags, the child pages after that can get "trapped" in the first child's content.

Q. Error 324 (net::ERR_EMPTY_RESPONSE)

A. This error usually occurs when you try to have this shortcode on a child page. You cannot nest this shortcode (i.e., have it on a parent page and one of the child pages).

Q. It takes a long time for the page to display.

A. The time it takes for the page to display is the time it takes for all of the subpages' content to load. If you have subpages with lots of content (or javascript that loads in content), it will take time for WordPress to load that page.

Requires: 3.4.1 or higher
Compatible up to: 4.6.2
Last Updated: 4 months ago
Active Installs: 200+


5 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.