WordPress show all posts on a Custom Post Type archive page


  1. Dan

    Is there a way of filtering out one of the authors from this scheme? Let’s say a user with the ID=’4′ doesn’t want to have an author archive with portfolios, but only with plain posts. Is it possible?
    Thank you.

    1. Hi Dan,

      Not quite following you here. Are you looking to filter a user out of the portfolio archive, or simply show ALL posts by an author?

      You can also use pre_get_posts to show all posts on an author archive page. Try this in the query: if ( $query->is_author() ) {...}

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.