Title: Something wrong with Category.php?
Last modified: August 19, 2016

---

# Something wrong with Category.php?

 *  Resolved [Mr. Grim Reaper](https://wordpress.org/support/users/mr-grim-reaper/)
 * (@mr-grim-reaper)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/something-wrong-with-categoryphp/)
 * I’m using a custom version of category.php. When I use it at a template for a
   page, and then visit that page, it lists all the categories, but, if I click 
   on one, it loads the right URL, but it’s the same content (the list of categories)
   rather than all the posts, as it should be. Here’s my category.php:
 *     ```
       <?php
       /*
       Template Name: Category
       */
       ?>
       <?php get_header(); ?>
       <h1 class="page">Archives by Topic</h1>
       <ul class="archive">
       	<?php wp_list_categories( 'title_li=' ); ?>
       </ul>
       <?php get_footer(); ?>
       ```
   
 * Am I doing something wrong?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/something-wrong-with-categoryphp/#post-828097)
 * yes, you are.
 * category.php is for [displaying](http://codex.wordpress.org/Category_Templates)
   posts. Displaying posts means you have [the_loop](http://codex.wordpress.org/The_Loop)
   somewhere.
 *  Thread Starter [Mr. Grim Reaper](https://wordpress.org/support/users/mr-grim-reaper/)
 * (@mr-grim-reaper)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/something-wrong-with-categoryphp/#post-828098)
 * I might get it. Do you mean it’s like archive.php and archives.php? So, use categories.
   php for the page template and category.php for displaying the posts?
 * Yep, that did the trick! Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Something wrong with Category.php?’ is closed to new replies.

## Tags

 * [category.php](https://wordpress.org/support/topic-tag/category-php/)
 * [template](https://wordpress.org/support/topic-tag/template/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Mr. Grim Reaper](https://wordpress.org/support/users/mr-grim-reaper/)
 * Last activity: [17 years, 9 months ago](https://wordpress.org/support/topic/something-wrong-with-categoryphp/#post-828098)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
