diff --git a/archive.php b/archive.php index 03bbd8c9..c9e57b13 100644 --- a/archive.php +++ b/archive.php @@ -26,8 +26,8 @@ get_header(); ?> } elseif ( is_author() ) { // Get the queried author data. - $author = get_queried_object()->data; - printf( __( 'Author Archives: %s', '_s' ), '' . esc_html( $author->display_name ) . '' ); + $author = get_queried_object(); + printf( __( 'Author Archives: %s', '_s' ), '' . esc_html( $author->display_name ) . '' ); } elseif ( is_day() ) { printf( __( 'Daily Archives: %s', '_s' ), '' . get_the_date() . '' );