Category pages showing ALL posts rather than specific category…
-
I’ve just added categories to my site, but I don’t have a categories.php file in my template folder. I DO have an archives.php file, which calls up ALL posts. When I view a category page, it will display all posts, not just the posts in that category (though when I click the “next page” button on a category page that doesn’t have enough posts to actually have a next page, I get an error).
I’m not sure if I messed up the template somewhere along the line or if it never worked. What I need to know is how to limit the posts displayed to the specific category without having to create a bunch of category-ID.php files. I’m assuming I’ll probably have to create a category.php file? But what code do I need to use to make it work?
- The topic ‘Category pages showing ALL posts rather than specific category…’ is closed to new replies.