Title: wp_list_cats() problem
Last modified: August 18, 2016

---

# wp_list_cats() problem

 *  [codergurl](https://wordpress.org/support/users/codergurl/)
 * (@codergurl)
 * [22 years, 3 months ago](https://wordpress.org/support/topic/wp_list_cats-problem/)
 * No matter what I set the target file to be in wp_list_cats(), it links to the
   index page. I think this is because it uses get_category_link() which is set 
   to link to the index page.
    <?php wp_list_cats(‘file=wp-archives.php’); ?>

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

 *  [Ryan Boren](https://wordpress.org/support/users/ryan/)
 * (@ryan)
 * [22 years, 3 months ago](https://wordpress.org/support/topic/wp_list_cats-problem/#post-40558)
 * Yep, this has been broken for some time. Ever since the introduction of permalinks,
   probably. Perhaps get_category_link() needs a file arg.
 *  Anonymous
 * [21 years, 11 months ago](https://wordpress.org/support/topic/wp_list_cats-problem/#post-41297)
 * Has this been fixed yet. Does anyone know of a workaround?
 *  [Mark Jaquith](https://wordpress.org/support/users/markjaquith/)
 * (@markjaquith)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/wp_list_cats-problem/#post-41302)
 * If you’re using mod_rewrite for “pretty URIs,” you could just alter those so 
   that category links use a different file.

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

The topic ‘wp_list_cats() problem’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 4 participants
 * Last reply from: [Mark Jaquith](https://wordpress.org/support/users/markjaquith/)
 * Last activity: [21 years, 11 months ago](https://wordpress.org/support/topic/wp_list_cats-problem/#post-41302)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
