WordPress.org

Support

Support » How-To and Troubleshooting » wp_list_cats() problem

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)
  • Yep, this has been broken for some time. Ever since the introduction of permalinks, probably. Perhaps get_category_link() needs a file arg.

    Has this been fixed yet. Does anyone know of a workaround?

    Mark Jaquith
    Participant

    @markjaquith

    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.