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)
安装:
Upload wp_list_sub_pages.php to the /wp-content/plugins/ directory
Activate the plugin through the 'Plugins' menu in WordPress
Place <?php wp_list_sub_pages(); ?> in your templates