Cutting off excerpt with first sentence
I'm trying to end my excerpts with the first sentence. I had attempted the solutions I found on this website, including each function + add_filter from these posts:
How to end the excerpt with a sentence rather than a word?
and
End excerpt at the end of the sentence
It hasn't worked. I had checked that the filter is applied by adding the function:
function print_filters_for( $hook = '' ) {
global $wp_filter;
if( empty( $hook ) || !isset( $wp_filter[$hook] ) )
return;
print 'pre';
print_r( $wp_filter[$hook] );
print '/pre';
}
and calling it on the templates. It shows up. I had tried switching the order that it's applied with the generic wp_trim_excerpt by adding the $priority argument, but it doesn't make the difference: excerpts are still trimmed by number of words. If it makes a difference, I'm using Divi and making a child theme.
Does anyone know what may be the problem?