wp_list_cats() problem (4 posts)

  1. codergurl
    Posted 12 years ago #

    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'); ?>

  2. Ryan Boren
    WordPress Dev
    Posted 12 years ago #

    Yep, this has been broken for some time. Ever since the introduction of permalinks, probably. Perhaps get_category_link() needs a file arg.

  3. Anonymous
    Posted 12 years ago #

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

  4. Mark Jaquith
    WordPress Lead Dev
    Posted 12 years ago #

    If you're using mod_rewrite for "pretty URIs," you could just alter those so that category links use a different file.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.