WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

SR-ChildPages

This plugin allows page authors to easily list any child pages of a given page by simply using a new `[childpages]` shortcode.

Usage

The basic shortcode to get a page list is [childpages]. Wherever you have a need to drop of a list of child pages for the page you're currently authoring, just enter that code in either the Visual or HTML editor. The list that results will not be shown with a title, will be one level deep, will not exclude any child pages or authors, and will be sorted by page order and then by title.

To list the child pages with a title, use the enclosing form of the shortcode, like this:

[childpages]List Title[/childpages]

The text between the opening and closing shortcodes will be the title of the resulting list. It is being passed to the title_li attribute in the wp_list_pages() template tag.

To change the defaults used to format the list, pass the appropriate parameters in your shortcode, like this:

[childpages depth=2 sort_column=ID]

The parameters you provide are passed to wp_list_pages(). The following parameters are supported; usage details for these parameters can be found in the WordPress Codex.

  • depth
  • child_of
  • exclude
  • echo
  • authors
  • sort_column

For more information, visit the plugin's home page at http://scottierocket.com/wordpress-stuff/sr-childpages.

Requires: 2.5 or higher
Compatible up to: 2.5.1
Last Updated: 2008-5-17
Downloads: 383

Ratings

1 star
1 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

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