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

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>