Author Post Types

Version audio de cet article
WordPress doesn’t display the author post types by default. We need to use a query string post type and insert a post table with the post type name you want.
function author_page_query_string($query_string)
{
if (isset($query_string['author_name'])) $query_string['post_type'] = array('post','communiques');
return $query_string;
}
add_filter('request', 'author_page_query_string');With this function, you can easily consult your authors’ post types and pages will be numbered.