Title: Subpage as Expandable Text Shortcode
Author: salubrio
Published: <strong>5 novembro, 2012</strong>
Last modified: 26 março, 2025

---

Pesquisar plugins

Este plugin **não foi testado com os 3 lançamentos principais mais recentes do WordPress**.
Ele pode não ser mais mantido ou suportado e pode ter problemas de compatibilidade
quando usado com versões mais recentes do WordPress.

![](https://ps.w.org/subpages-expand/assets/icon.svg?rev=1668876)

# Subpage as Expandable Text Shortcode

 Por [salubrio](https://profiles.wordpress.org/salubrio/)

[Baixar](https://downloads.wordpress.org/plugin/subpages-expand.1.20.zip)

 * [Detalhes](https://br.wordpress.org/plugins/subpages-expand/#description)
 * [Avaliações](https://br.wordpress.org/plugins/subpages-expand/#reviews)
 *  [Instalação](https://br.wordpress.org/plugins/subpages-expand/#installation)
 * [Desenvolvimento](https://br.wordpress.org/plugins/subpages-expand/#developers)

 [Suporte](https://wordpress.org/support/plugin/subpages-expand/)

## Descrição

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.

### Acknowledgements

Plugin Icon (CC BY 3.0) by [DinosoftLabs](http://dinosoftlabs.com/)

## Capturas de tela

[⌊Shortcode in parent post⌉⌊Shortcode in parent post⌉[

Shortcode in parent post

[⌊Public view showing each subpage's title with one expanded⌉⌊Public view showing
each subpage's title with one expanded⌉[

Public view showing each subpage’s title with one expanded

## Instalação

If you have a single file (ending in “.zip”), then use the _Upload_ method. If you
have multiple files, use the _Files_ method. If you’re installing from WordPress
directly, just hit the big ‘Install Plugin’ button.

#### Upload

 1. From the plugins, add new screen, choose upload
 2. Navigate to where the .zip file is located and select it
 3. Make sure to _activate_ the plugin once it is installed

#### Files

 1. Upload the entire directory (not just the files) to the `/wp-content/plugins/` 
    directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

#### Planned Enhancements

In no particular order

 * Option to display arrows next to titles to show if they are expanded or not (
   option to pick arrow type)
 * Option to display child page titles as links (will still expand when clicked)
 * Option to lazy-load subpages when clicked
 * Potentially move away from jQuery for performance

## Perguntas frequentes

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

## Avaliações

Não há avaliações para este plugin.

## Colaboradores e desenvolvedores

“Subpage as Expandable Text Shortcode” é um programa de código aberto. As seguintes
pessoas contribuíram para este plugin.

Colaboradores

 *   [ salubrio ](https://profiles.wordpress.org/salubrio/)

[Traduzir o “Subpage as Expandable Text Shortcode” para seu idioma.](https://translate.wordpress.org/projects/wp-plugins/subpages-expand)

### Interessado no desenvolvimento?

[Navegue pelo código](https://plugins.trac.wordpress.org/browser/subpages-expand/),
consulte o [repositório SVN](https://plugins.svn.wordpress.org/subpages-expand/)
ou assine o [registro de desenvolvimento](https://plugins.trac.wordpress.org/log/subpages-expand/)
por [RSS](https://plugins.trac.wordpress.org/log/subpages-expand/?limit=100&mode=stop_on_copy&format=rss).

## Registro de alterações

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 page links were displaying. Added additional FAQs that came 
up.

1.09 Fixed “Undefined variable: content” bug; cleaned up code

1.07 Fixed bug where shortcodes in the child pages weren’t rendering

1.05a Corrected spelling/grammar errors in documentation (no functionality change)

1.05 Fixed issue with missing subpages

1.03 Expanded readme with information about an issue; added screenshots to zip

1.01 Released with a debug fix, some formatting for the titles and code cleanup

0.90 CSS change to title cursor

0.70 Initial

## Meta

 *  Versão **1.20**
 *  Última atualização **2 anos atrás**
 *  Instalações ativas **80+**
 *  Versão do WordPress ** 3.4.1 ou superior **
 *  Testado até **6.7.10**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/subpages-expand/)
 * Tags
 * [effect](https://br.wordpress.org/plugins/tags/effect/)[jquery](https://br.wordpress.org/plugins/tags/jquery/)
   [navigation](https://br.wordpress.org/plugins/tags/navigation/)[pages](https://br.wordpress.org/plugins/tags/pages/)
   [text](https://br.wordpress.org/plugins/tags/text/)
 *  [Visualização avançada](https://br.wordpress.org/plugins/subpages-expand/advanced/)

## Classificações

 5 de 5 estrelas.

 *  [  2 avaliações com 5 estrelas     ](https://wordpress.org/support/plugin/subpages-expand/reviews/?filter=5)
 *  [  0 avaliação com 4 estrela     ](https://wordpress.org/support/plugin/subpages-expand/reviews/?filter=4)
 *  [  0 avaliação com 3 estrela     ](https://wordpress.org/support/plugin/subpages-expand/reviews/?filter=3)
 *  [  0 avaliação com 2 estrela     ](https://wordpress.org/support/plugin/subpages-expand/reviews/?filter=2)
 *  [  0 avaliação com 1 estrela     ](https://wordpress.org/support/plugin/subpages-expand/reviews/?filter=1)

[Sua avaliação](https://wordpress.org/support/plugin/subpages-expand/reviews/#new-post)

[Ver todas avaliações](https://wordpress.org/support/plugin/subpages-expand/reviews/)

## Colaboradores

 *   [ salubrio ](https://profiles.wordpress.org/salubrio/)

## Suporte

Tem algo a dizer? Precisa de ajuda?

 [Ver fórum de suporte](https://wordpress.org/support/plugin/subpages-expand/)