Set up Custom-Post-Type Author Archive

When you click on an author link generated in the normal way, the server will not know that you only want the custom posts from this author returned. So you will have to tell the server. This is perfectly doable, but a bit too much work to write it down here completely for you. Here are the steps roughly:

  1. Use the filter author_link to attach the string "?post_type=your-cpt-name" to the link generated on cpt posts. When clicked this will tell the server that you want only cpt posts on this author archive page.

  2. Use the filter pre_get_posts to modify the default author archive query. Inside the function for this filter you can use get_query_var to retrieve the value of post_type and restrict the query to only cpt’s (this might even happen automatically, though I’m not sure about that)