I previously had a custom post type called "Business" however the client needed this changed to "Listing", which I did (before we started adding a load of posts, luckily).
We now have over 100 posts under the "Listing" post type, however when I use the default loop on the archive-listing.php template as
$i = 0;
if (have_posts()) : while (have_posts()) : the_post();
echo $i++ . " ";
endwhile; endif;
I only see 50 posts returned. More strange is that when I view the posts within Wordpress (by clicking "Listing" on the left hand menu), I see 50 posts on the first page (of 9 pages), even though I have set Screen settings > Number of items...
to just 10
.
I have visited and saved the permalinks page, so it's not that. Is this perhaps related to the name change of the custom post type early on, and if so, how do I resolve this at this late stage?