Custom Excerpt Length

add_filter( ‘excerpt_length’, ‘custom_excerpt_length’, 999 ); /** * Change the length of excerpt. * * @param int $length The number of words. Default 55. * @return int New excerpt length. */ function …