Title: List Child Pages Shortcode
Author: douglaskarr
Published: <strong>Agẹmọ  12, 2018</strong>
Last modified: Ọwẹ́wẹ̀  24, 2025

---

Ṣàwárí àwọn plugin

![](https://ps.w.org/list-child-pages-shortcode/assets/banner-772x250.png?rev=1908389)

![](https://ps.w.org/list-child-pages-shortcode/assets/icon.svg?rev=1908389)

# List Child Pages Shortcode

 Láti ọwọ́ [douglaskarr](https://profiles.wordpress.org/douglaskarr/)

[Ṣe ìgbàsílẹ̀](https://downloads.wordpress.org/plugin/list-child-pages-shortcode.1.4.0.zip)

 * [Àwọn àlàyé](https://yor.wordpress.org/plugins/list-child-pages-shortcode/#description)
 * [Àwọn àgbéyẹ̀wò](https://yor.wordpress.org/plugins/list-child-pages-shortcode/#reviews)
 *  [Ìgbéwọlẹ̀](https://yor.wordpress.org/plugins/list-child-pages-shortcode/#installation)
 * [Ìdàgbàsókè](https://yor.wordpress.org/plugins/list-child-pages-shortcode/#developers)

 [Ìrànlọ́wọ́](https://wordpress.org/support/plugin/list-child-pages-shortcode/)

## Àpèjúwe

I could not find an easy plugin that enabled me to use a shortcode that would enable
me to publish a list of child pages under a parent page. So, I built one.

#### Usage

The shortcode is `[listchildpages]...[/listchildpages]`. It accepts several attributes:

 * **ifempty**: Message or HTML to show if no child pages exist.
 * **order**: `ASC` or `DESC`. Default: `DESC`.
 * **orderby**: Field to order by. Default: `publish_date` (maps to `date`). Any
   valid `WP_Query` orderby value works.
 * **displayimage**: Show featured image (`yes|no`). Default: `no`.
 * **align**: CSS class to apply to the image (`alignleft`, `alignright`, etc.).
 * **ulclass, liclass, aclass**: CSS classes for the list, list items, and links.
 * **parent**: ID, slug/path, or `current` to choose the parent page. Default: `
   current`.
 * **size**: Image size for thumbnails (`thumbnail`, `medium`, `large`, `full`, 
   or custom size). Default: `thumbnail`.

Examples:

Example 1: Order the child pages by publish date in descending order:
 [listchildpages
aclass=”” ifempty=”No child pages” orderby=”publish_date” order=”desc” displayimage
=”no”]

### Here are our child pages:

    ```
    [/listchildpages]
    ```

Example 2: Order the child pages by title in ascending order with the pageÌtumọ̀
Yorùbá: ’s featured image aligned left:
 [listchildpages orderby=”title” order=”
asc” displayimage=”yes” align=”alignleft”]

### Here are our child pages:

    ```
    [/listchildpages]
    ```

Example 3: Target a specific parent page by ID and use medium-sized images:
 [listchildpages
parent=”123Ìtumọ̀ Yorùbá: ″ displayimage=”yes” size=”medium”]

### Resources

    ```
    [/listchildpages]
    ```

Example 4: Target a parent page by slug and show full-size featured images:
 [listchildpages
parent=”about/company” displayimage=”yes” size=”full”]

### Team Sections

    ```
    [/listchildpages]
    ```

Example 5: Explicitly set the parent as the current page and use large images:
 [
listchildpages parent=”current” displayimage=”yes” size=”large”]

### Subpages

    ```
    [/listchildpages]
    ```

The shortcode accepts all of the Order and Orderby Parameters listed within the 
[WordPress class reference](https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters).

Built by [DK New Media](http://www.dknewmedia.com), visit [MarTech](https://martech.zone)
to keep up on this plugin and other marketing tools to help you grow your online
presence!

## Àwọn àwòrán ìbòjú

 * [[
 * View of the shortcode.
 * [[
 * View of the output.

## Ìgbéwọlẹ̀

 1. Activate the plugin through the ‘Plugins’ menu in WordPress.

## FAQ

### How can I add a description for each child page?

Edit the child page and youÌtumọ̀ Yorùbá: ’ll find an excerpt section where you 
can enter a description that will be published on the list.

### How can I enable featured images on my site?

Within your functions.php file, look for the add_theme_support post-thumbnails line
and add page to the array. Or if you donÌtumọ̀ Yorùbá: ’t have that line, you can
just add it:

    ```
    add_theme_support( 'post-thumbnails', array( 'post', 'page' ) );
    ```

### How can I modify the output?

There are additional class fields for the unordered list tag (ulclass), list item
tag (liclass), and the anchor tag (aclass). You can modify the output utilizing 
your themeÌtumọ̀ Yorùbá: ’s CSS.

## Àwọn àgbéyẹ̀wò

![](https://secure.gravatar.com/avatar/310bb637c5e8aedfcada5ce05b7dec9e0d126a51020c64223d303ba8538f2015?
s=60&d=retro&r=g)

### 󠀁[Excellent Plugin Ìtumọ̀ Yorùbá: – Shortcodes with lots of options](https://wordpress.org/support/topic/excellent-plugin-shortcodes-with-lots-of-options/)󠁿

 [niallflynn](https://profiles.wordpress.org/wordpressdublin/) Agẹmọ 22, 2020

Really handy plugin. Examples are very handy too.

![](https://secure.gravatar.com/avatar/eaeca72e7b9c9c429feed753d3e1401f61e8dd388d8635a42167072978d5a665?
s=60&d=retro&r=g)

### 󠀁[Awesome. Someone finally brought this useful feature back](https://wordpress.org/support/topic/awesome-someone-finally-brought-this-useful-feature-back/)󠁿

 [jaffray](https://profiles.wordpress.org/jaffray/) Ògún 14, 2018 1 ìdáhùn

All the previous plugins that solved this challenge are all dead or not maintained.

![](https://secure.gravatar.com/avatar/6bba8ab7d677f41b48978e80396d06dd033cd5bb4bc3bcd9967438772a84d7cf?
s=60&d=retro&r=g)

### 󠀁[Great Shortcode!](https://wordpress.org/support/topic/great-shortcode-2/)󠁿

 [douglaskarr](https://profiles.wordpress.org/douglaskarr/) Ògún 8, 2018

Would love to see this shortcode actually added to the core platform.

 [ Ka gbogbo àwọn àgbéyẹ̀wò 2 ](https://wordpress.org/support/plugin/list-child-pages-shortcode/reviews/)

## Àwọn Olùkópa & Olùgbéejáde

“List Child Pages Shortcode” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí
ti ṣe ìkópa sí plugin yìí.

Àwọn Olùkópa

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

[Túmọ̀ “List Child Pages Shortcode” sí èdè rẹ.](https://translate.wordpress.org/projects/wp-plugins/list-child-pages-shortcode)

### Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

[Ṣàwárí koodu](https://plugins.trac.wordpress.org/browser/list-child-pages-shortcode/),
ṣàyẹ̀wò [ibi ìpamọ́ SVN](https://plugins.svn.wordpress.org/list-child-pages-shortcode/),
tàbí ṣe àgbékalẹ̀ sí [àkọsílẹ̀ ìdàgbàsókè](https://plugins.trac.wordpress.org/log/list-child-pages-shortcode/)
nípasẹ̀ [RSS](https://plugins.trac.wordpress.org/log/list-child-pages-shortcode/?limit=100&mode=stop_on_copy&format=rss).

## Àkọsílẹ̀ àwọn àyípadà

#### 1.4.1

 * Updated keywords for plugin

#### 1.4.0

 * Added `parent` attribute to target a specific parent page by ID or slug.
 * Added `size` attribute to choose featured image size.
 * Hardened shortcode sanitization and escaping for security.
 * Backward-compatible with previous versions.

#### 1.3.2

 * Tested in latest versions of WordPress

#### 1.3.1

 * Tested in latest versions of WordPress

#### 1.3.0

 * Added an option to display the featured image for the page.
 * Added class outputs for the ul and li tags in addition to the anchor text.

#### 1.2.2

 * Corrected an undeclared variable error.

#### 1.2.1

 * Added documentation on where you can see all of the order and orderby parameters.

#### 1.2.0

 * Added another shortcode option for the order. Default is DESC.

#### 1.1.0

 * Added another shortcode option for the orderby. Default is publish_date.

#### 1.0.0

 * Initial Release

## Àkójọpọ̀ Meta

 *  Ẹ̀yà **1.4.1**
 *  Ìgbàgbọ́hùn tó kẹ́yìn **oṣù 7 sẹ́yìn**
 *  Àwọn ìgbéwọlẹ̀ tó ṣiṣẹ́ **600+**
 *  Ẹ̀yà WordPress ** 3.0.1 tàbí ju bẹ́ẹ̀ lọ **
 *  Dánwò dé **6.7.5**
 *  Èdè
 * [English (US)](https://wordpress.org/plugins/list-child-pages-shortcode/)
 * Àwọn àmì
 * [child page](https://yor.wordpress.org/plugins/tags/child-page/)[page](https://yor.wordpress.org/plugins/tags/page/)
   [parent page](https://yor.wordpress.org/plugins/tags/parent-page/)[shortcode](https://yor.wordpress.org/plugins/tags/shortcode/)
 *  [Ìwòye Tó Péye](https://yor.wordpress.org/plugins/list-child-pages-shortcode/advanced/)

## Àwọn ìbò

 5 lára àwọn ìràwọ̀ 5.

 *  [  3 5-star reviews     ](https://wordpress.org/support/plugin/list-child-pages-shortcode/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/list-child-pages-shortcode/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/list-child-pages-shortcode/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/list-child-pages-shortcode/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/list-child-pages-shortcode/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/list-child-pages-shortcode/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/list-child-pages-shortcode/reviews/)

## Àwọn Olùkópa

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

## Ìrànlọ́wọ́

Nǹkan wà tí o fẹ́ sọ? Ṣé o nílò ìrànlọ́wọ́?

 [Wo àpéjọ ìrànlọ́wọ́](https://wordpress.org/support/plugin/list-child-pages-shortcode/)

## Ṣe ìtọrẹ

Ṣé o fẹ́ ṣe àtìlẹ́yìn fún ìlọsíwájú plugin yìí?

 [ Ṣe ìtọrẹ sí plugin yìí ](https://dknewmedia.com)