The loop showing "phantom" posts
-
I have the loop set up on my main blog page to only show posts from the “Blog” category, I have navigation at the bottom set up to show if there are more than X number of posts on the page. However whats happening is that the code is generating a first page on which it shows no posts (so its correctly not showing any posts not in the Blog category but they are still “taking up space” as it were) but shows a link to older posts i.e. the actual posts in the Blog category.
And advice on simply removing not blog category posts from the “flow” entirely would be greatly appreciated.
The code is as follows:
[code moderated - use the pastebin for any code over the forum limit of 10 lines]
- The topic ‘The loop showing "phantom" posts’ is closed to new replies.