wp_list_sub_pages

By Didier Sampaolo

10+ active installationsVersion 0.1

wp_list_sub_pages will list only pages within the same category (top-level parent) as the current page.

Description

This WordPress plugin is oly one function. It takes exactly the same parameters as wp_list_pages, except for child_of, which is used internally.
When called on in template file, it will list :
* on the homepage of the blog, every page and subpage (default, this can be overriden by parameters)
* on every other page, only the pages with the same top-parent (parent of level 1)

Installation

  1. Upload wp_list_sub_pages.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Place <?php wp_list_sub_pages(); ?> in your templates