Skip to toolbar

Add Custom Post Types to Author Archives

Author Archives exclude custom post types by default, this snippet adds them back.

By default, WordPress only includes ‘posts’ in the Author Archive. To fix this, you need to modify the pre_get_posts filter to accommodate for your missing post types.

 

Questions