What is wrong with this pagination code?
The main query runs before the template is loaded, and WordPress decides what template to load based on the results of that query. You say your default posts_per_page is set to 200, and there are 180 posts in that category, so as far as WordPress knows, there is no page 2. Your custom query that … Read more