I want to be able to remove automatic excerpts (and keep the custom ones) only on single posts since I make use of automatic excerpts in my archives. I am using this code:
if ( is_single() && 'post' == get_post_type() ) {
remove_filter('get_the_excerpt','wp_trim_excerpt');
}
But it doesn't seem to be doing anything. Without the condition, it strips out automatic excerpts from all places where excerpts exist.
if (is_singular('post') ) { }
?