I'm trying to figure out how to do, Second Level Menu as a template function, that persistent when visiting any level, whether its a top level page, or a grand children Page. Any Ideas?
1 Answer
example:
<?php //get top level page ID;
$top = ( $post->post_parent ) ? array_pop(get_post_ancestors($post->ID)) : $post->ID;
echo '<ul>';
wp_list_pages('title_li=&child_of='.$top.'&depth=1');
echo '</ul>';
?>