WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Aaron Harp v1.7.7

List Pages Shortcode

Introduces the [list-pages], [sibling-pages] and [child-pages] shortcodes for easily displaying a list of pages within a post or page.

List Pages Shortcode

The facts

Rating
4.9★ from 14
Active installs
5k+
Price
Free
Last updated
21 Feb 2023
Added
Mar 2009
Requires WP
4.4.0
Tested up to
WP 6.1.12
Downloads
124,475

Our analysis

AI-assisted

List Pages Shortcode is a WordPress plugin that allows you to display lists of pages within your posts or pages using shortcodes. It provides three shortcodes: [list-pages], [sibling-pages], and [child-pages], each with customizable parameters to control the output.

This plugin is suitable for users who want to enhance their site’s navigation by listing pages in a structured format. It can be particularly useful for websites with multiple pages that need to be easily accessible to visitors.

Best for: This plugin suits WordPress users looking to improve page navigation on their sites.

What it does well

  • Offers three shortcodes for listing pages
  • Customizable parameters for sorting and excluding pages
  • Allows for the inclusion of page excerpts
  • Free to use from the WordPress.org directory
  • Active installation count of 5,000

Where it falls short

  • Limited information on additional features
  • No support for custom post types mentioned

Verdict

List Pages Shortcode provides a straightforward way to display page lists, making it a practical choice for enhancing site navigation.

From the developer

Aaron Harp's own description of List Pages Shortcode, lightly tidied.

Introduces the [list-pages], [sibling-pages] and [child-pages] shortcodes for easily displaying a list of pages within a post or page. Both shortcodes accept all parameters that you can pass to the wp_list_pages() function with the addition of a class parameter.

Example Usage

List pages sorted by title

[list-pages sort_column="post_title"]

List pages but exclude certain IDs and set the class of the list to “my-page-list”

[list-pages exclude="17,38" class="my-page-list"]

Show excerpt (for pages excerpt support will need adding manually or via the Page Excerpt plugin)

[list-pages excerpt="1"]

List the current page’s children, but only show the top level

[child-pages depth="1"]

List the current page’s siblings and their subpages

[sibling-pages depth="2"]

Default Arguments

The default values are the same as for the wp_list_pages() function except for title_li which defaults to nothing. If a class is not specified, a default class of either “list-pages”, “sibling-pages” or “child-pages” is given to the UL tag. In addition, the echo parameter has no effect.

In addition to the wp_list_pages() arguments, you can also specify:

  • list_type (string) List tag. Defaults to <ul>.
  • exclude_current_page (int) Exclude the current page. Defaults to 0.
  • excerpt (int) Show the page excerpt. Defaults to 0.

Read the full description on the official page →

Tagged as