Category post count is not correct

You’re a post type that doesn’t exist, there is no Post post type, did you mean post?


Sidenotes:

  • wp_reset_query is only for use after query_posts you should be using wp_reset_postdata instead.
  • There is no if ( $loop->have_posts() ) check so if no posts are found there is no message and it looks like the page is broken
  • This page would be much faster if you used category archives for your category archives, then used pre_get_posts to modify the query, instead of a page template and a brand new custom query
    • if you are doing this on category.php or archive.php then you’re doubling the number of queries so that you can change posts_per_page, use pre_get_posts to change it instead