I have searched the forum and FB community trying to solve this problem but I am almost convinced that there is no definitive solution to this.
I have created a template for displaying the default posts categories of WP. I only have normal posts that are assigned to a single category “News” for now.
No matter which settings I try (“Merge…”, “Is main query”) the pagination is not working. If I set “Is main query” then there are no posts fetched at all. With any other setting when clicking on a page number on the pagination element the URL is “https://myurl.com/media/news/page/2/” and so on…and I get a 404 error since “page 2,3,4…” do not exist.
Is there a but since most of the threads I read and the suggested solutions do not work for me (i.e. matching the number of posts in WP Reading settings with those of the loop).
I didn’t solve it with a template because I want to display the query on a specific page for a specific purpose. I’m sending 3 screenshots of this. If the original 10 was specified on the WordPress > Settings > Read page (default), then the paging didn’t work well for me either.
I was facing the same errors on our https://liposuctiondenver.com, the problem was the site being designed with the elementor and other elementor related plugin. And this alone create 500 plus 404 pagination pages. In our case, make sure to check, how you design your category pages.
if it is being design with any plugin, deactivate it and crawl the site with the screening frog. You will get to know, weather the problem with the plugin or not.