Question
I am using this function to limit the excerpt to the first sentence... function hello_first_sentence( $string ) { $sentence = preg_split( '/(.|!|?)s/', $string, 2, PREG_SPLIT_DELIM_CAPTURE ); return $sentence['0'] . $sentence['1']; } add_filter( 'get_the_excerpt', 'hello_first_sentence', ...
0
, 6 months 0 Answers 52 views