Add Filter – Pass Variable (PHP < 5.3)
You could try something like the second option, but I think it would be overkill. Instead, just write your own custom analog to wp_trim_excerpt() (the function that applies the excerpt_length and excerpt_more filters to the excerpt), like so: function custom_excerpt( $new_length = 20, $new_more=”…”, $strip = false ) { // Start with the content $text … Read more