Thank you David. It worked well to remove the featured post but I have a longer excerpt on the featured post of the author page still. I had used the following code to make the excerpt longer:
add_filter( 'excerpt_length', function( $length ) {
global $wp_query;
if ( 0 === $wp_query->current_post && !wp_is_mobile() && !is_paged() ) {
$length = 50;
} else {
$length = 20;
}
return $length;
}, 200);
Is there a way I can modify this code so it doesn’t affect the author pages?