Interestingly enough, changing my template back to the default does not fix the issue. Very strange…
Okay, it has something to do with the permalink structure. Now if I go and change the permalink structure to the default setting, everything works fine. But I don’t want to have to do that. This is an incredibly bad problem which, to be honest, I’ve not run into before now oddly enough. Perhaps this is a 3.2.1 thing?
One more note, I have just recently completed another site which used exactly the same permalink structure, and it worked perfectly fine the only difference is that get_next_post() was being called on the index.php file and not on the loop-category.php file.
Sorry for posting like a madman, just updating as I investigate this. So basically, this is a permalink issue, but what is really weird is the only permalink structure that seems to have an issue, is /%category%/%postname%/
If I use any of the predefined ones, it’s fine. If I use simply /%postname%/
it’s fine. Finding this really weird, and irritating considering the first example really is the preferred permalink structure. I began to get suspicious however when the blog category homepage was simply /category-slug instead of /category/category-slug like it usually is with this install. Hoping someone has a fix for this.
Cheers.
OKAY fixed the problem. The issue was due to a wrong file path for my category. As I mentioned before, I was using /category-slug instead of /category/category-slug, don’t ask me why, never done this before. Anyway as soon as I switched it to /category/category-slug it worked fine. My bad, issue resolved.