Update:
Here's my functions.php code:
function remove_sfmenu () {
remove_filter('wp_page_menu','thematic_add_menuclass');
}
add_action('init', 'remove_sfmenu');
function remove_wp_page_menu() {
remove_action('thematic_access','wp_page_menu',optionalpostitionnumber);
}
add_action('init','remove_wp_page_menu');
function child_nav() {
?>
<ul id="nav">
<?php wp_list_pages('title_li=&depth=1'); ?>
<?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 && is_page()) { ?>
<ul id="subnav">
<?php echo $children; ?>
<?php } else { ?>
<?php } ?>
<?php
}
add_action('thematic_access', 'child_nav');
function child_menuclass($ulclass) {
return preg_replace('/
<ul>/', '<ul id="nav">', $ulclass, 1);
}
add_filter('wp_page_menu','child_menuclass');
</ul>
Here's the result.
As you can see, the sub menu is displaying all child pages regardless of the parent page, and does not change as it's supposed to.
Any ideas what I'm missing here?