I have simple syntax question
If I want to add a custom filter to my child theme functions.php
QUESTION: If the post is a page I want it to this .. otherwise I want it to display the standard sidebar?
I thought it would be something like this .. but how to I call the standard thematic sidebar?
<?php
function test() {
global $post;
if (is_page()) { ?>
i am a page
<?php }else{
thematic_sidebar();
}
}
add_filter ('thematic_sidebar', 'test');
?>