Hidden feature in new menu tag in WP 2.7?
There’s a neat new tag in WP 2.7 that lets you display a list of wordpress pages as links for navigation. You can even include the link to home much more painlessly than before. A typical tag will look like this:
<?php wp_page_menu('show_home=1&exclude=5,9,23&menu_class=page-navi&sort_column=menu_order'); ?>
However one feature that seems to be undocumented is the addition of depth. You can also specify the depth of the links by using “depth=x” as a parameter where “x” is the depth. 1 will display only the top level links, 2 will display 1 level of sub-links and so on.
Works well with my suckerfish navigation. Try it!