NB: Make sure you do a back up of your theme, files and database before attempting the tutorials
Easy
Last modified : Sep 22 2022
Estimated reading time : 0 minutes, 36 seconds - 48 words
Share the post "Author Post Types"
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.