How to Create Author archive page for custom post types
<p>My WordPress site uses one default "post" and "books" custom post. I have two different archive page design for different post types (ile. author.php and books-archive.php). </p>

<p>Now, I want to create a custom user profile page with two links, "All Posts by user" and "All books by user". My current user archive page looks like as follows;</p>

<p>xxxxxxx.com/author/nilanchala</p>

<p>Can someone help me how to create two author archive pages filtered by post types? One for "Post" and other for "Books"?</p>

<p>Please do not suggest any plugin.</p>