Query with pre_get_posts to get pagination
It appears that you want to create a custom page template to display a custom post type? If so, you don’t really need to mess with pre_get_posts at all. First, create your custom page template. I assume you’ve already done this. Second, you need to create a custom query, using WP_Query(): global $post; $types = … Read more