Weblogtoolscollection News » New Wordpress Plugins

[New Plugin] List Pages at Depth

  • Topic started 4 years ago
  • 1 posts so far
  • Latest reply from benhuson

  1. benhuson
    Member

    Adds a template function list_pages_at_depth() which builds on the wp_list_pages() function, allowing you to specify a start depth for your pages list.

    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.

    See code example here...

    The plugin is fully GPL compatible and is available from the WordPress repository:
    http://wordpress.org/extend/plugins/list-pages-at-depth/

    The home page for the plugin is:
    http://www.benhuson.co.uk/wordpress-plugins/list-pages-at-depth/

    Posted: 4 years #

RSS feed for this thread

This topic has been closed to new replies.


Back to top

0.117 - 12 queries