i use the following code in my functions.php. I want to exclude all pages which use the single.php template.
function cat_menu() {
if (!is_page_template('single.php')) {
$cur_cat = get_query_var('cat');
$new_cats = wp_list_categories('echo=false&child_of=' . $cur_cat .'&depth=1&title_li=&&show_count=0&hide_empty=1');
echo '<ul>' . $new_cats . '</ul>';
}}
add_action ( 'genesis_after_header', 'cat_menu' );
But i see the result aslo on pages which use the single.php.
Can somebody help me with this?