Creating a category.php page that ONLY displays category posts
Before, when I clicked a category, it would just give me a 404 error. Now, I’ve created a category.php page in my themes folder with the exact same code as my index.php page. I THOUGHT it was automatically sort through and only find the category related posts, but instead it shows ALL posts regardless of category(it’s just like the front page). Well, that’s no surprise since I did copy it from the front page. How do I make my category.php only display posts in the same category?
- The topic ‘Creating a category.php page that ONLY displays category posts’ is closed to new replies.