WordPress.org

Ready to get started?Download WordPress

Forums

Creating a category.php page that ONLY displays category posts (2 posts)

  1. kelp
    Member
    Posted 7 years ago #

    Hey,
    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?

  2. moshu
    Member
    Posted 7 years ago #

    Can we see it?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags