Hi, I am making a child of the twenty-ten theme, and would like to have slightly longer excerpts. I modified the loop so that it displays the_excerpt() by default, and only uses the auto-generated excerpts.
However, I can't change the length to be more than the word-press default. I tried editing my funcitons.php file with the following:
add_action( 'after_setup_theme', 'my_child_theme_setup' );
function my_child_theme_setup() {
// We are providing our own filter for excerpt_length (or using the unfiltered value)
remove_filter( 'excerpt_length', 'twentyten_excerpt_length' );
function repo_excerpt_length( $length ) {
return 200;
}
add_filter( 'excerpt_length', 'repo_excerpt_length', 200 );
}
But it doesn't work. I also tried editing TwentyTen's functions.php file and that doesn't work either. This also seems to apply to the "read more" link. TwentyTen's custom read more link function does not actually affect the look of the site either.
Thanks for any help!