// Place this function in your theme's functions.phpfunction add_hash($link) { // this code adds a hash tag to the end of the link return $link . '#menu';}
add_filter('page_link', 'add_hash');// .. your code to list subpages hereremove_filter('page_link', 'add_hash');
<?php
if($post->post_parent)
$children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0");
else
$children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0");
if ($children) { ?>
<ul>
<?php echo $children; ?>
</ul>
<?php } ?>
but I need them to go to a specific anchor call #menu
Any Help?
thanks
Then in your theme use this: