Possible Duplicate:
Refine custom posts by author

I need a way to display author archive pages for custom post types. I already know how to include custom post types into the default authors archive page that's not what I'm trying to achieve.


By default author archive pages are like this:


Here's what I want:


Whatever post type is specified at the end will display all the posts published by the author for that specific post type.

I would also like to target that specific template like this author-{post-type}.php

In addition I'm using the following snippet to alter the author page URL.

function change_author_permalinks() {

global $wp_rewrite;

// Change the value of the author permalink base to whatever you want here
$wp_rewrite->author_base = 'profile';




However this is achieved, needs to be compatible with the above function.