Limiting the Archive page to posts posted by particular author

function comment_author_id($query) {
    $author_id = get_query_var( 'hotel_name' );
    if ($author_id) {
      $query->set('author', $author_id);
    }

}
add_action( 'pre_get_posts', 'comment_author_id' );