List Pages at Depth
Plugin version: 1.1
Requires WordPress version: 2.8+
Tested up to WordPress version: 2.9.1
Download: Click to download…
This plugin creates a more powerful version of the wp_list_pages() function which allows you to specify a start depth.
This means you can easily display secondary and tertiary navigation seperately from the primary navigation on your site.
The list_pages_at_depth function accepts all the same arguments as wp_list_pages, but has an additional argument called ’startdepth’. Set this to be 0 to display primary navigation, 1 for secondary navigation etc.
If you want to display secondary navigation with indented tertiary navigation you can use this in conjunction with the depth argument – simply set startdepth to 1 and depth to 2.
<?php list_pages_at_depth(array('startdepth' => 1,'depth' => 1)); ?>
The plugin also features a widget so you can easily implement a page list in your sidebar.
Feedback and Support
Please leave comments with feedback below.
If you require support, it is best to post it in the WordPress.org Forum.
November 28th, 2009 at 8:16 pm
[...] List Pages at Depth [...]
December 8th, 2009 at 1:42 pm
How can i delete the list heading (default “Pages”)?
December 8th, 2009 at 2:25 pm
@Geert,
It accepts the same parameters as wp_list_pages so you should just be able to use:
< ?php list_pages_at_depth(array('startdepth' => 1,'depth' => 1, 'title_li' => '')); ?>December 9th, 2009 at 8:58 am
Superrrr! Thanks it’s works!
Regards,
Geert van der Heide