The problem was that the query in the author.php was querying only the post_type=’post’. Even if I added the arguments in the query_posts function, it would still query only the post.
To fix it, only add this code
add_filter('parse_query', 'parse_query_handler');
function parse_query_handler($q){
if (isset($q->query_vars['author_name']) && $q->query_vars['author_name'] != ''){
$q->query_vars['post_type'] = array("photos", "videos", "nouvelles");
}
return $q;
}
Replace the array(“photos”, “videos”, “nouvelles”); with your custom post types.