Query Multiple Post Types and Paginate Newly Created List
Never use new WP_Query for the main query of an archive template. WordPress has already queried the correct posts and things like pagination are based on that query. If you want to modify that query you should use the pre_get_posts to modify the main query before it is run. The hook runs on every query … Read more