Greetings--
I am trying to add a dynamic sub-menu above the content. The menu would only show sub categories within a category when a user was in that category.
See the code I'm trying below, derived from this forum and the WP codex:
// Add category Sub-menus above content on category and child pages
function custom_childtheme_catmenus(){
if( is_category() ) :
$this_cat_id = get_query_var('cat');?>
<div id="category-sub-menu">
<ul class="cat-menu">
<?php wp_list_categories('child_of=' . $this_cat_id); ?>
</ul>
</div><!-- end custom child category menu -->
<?php }}
add_action('thematic_abovecontent','custom_childtheme_catmenus');
I keep getting an error flag at the line
<?php }}
I'm sure it's something stupid, like leaving out a requisite } or ; character. My syntax is not that good.
Any help would be appreciated.