Hi
I am attempting to add a sidebar menu to Thematic to list child pages. I am still learning the code, but this is what I have so far
function childtheme_sidemenu() {
global $post;
if (is_page()) { ?>
<?php if($post->post_parent)
$children = wp_list_pages("sort_column=menu_order&title_li=&child_of=".$post->post_parent."&echo=0"); else
$children = wp_list_pages("sort_column=menu_order&title_li=&child_of=".$post->ID."&echo=0");
if ($children) { ?>
<h2><?php echo $page_name; ?> Sections</h2>
<ul>
<?php echo $children; ?>
</ul>
<div class=sidebar-spacer></div>
<?php } ?>
<?php }
}
add_filter( 'thematic_abovemainasides()', 'childtheme_sidemenu' );
?>
This is generating a syntax error related to a }.
I would appreciate any suggestions, or pointers to relevant guides.
Thanks