Title: [Plugin: WordPress Category Archive] Category Archive / Permalink Errors
Last modified: August 19, 2016

---

# [Plugin: WordPress Category Archive] Category Archive / Permalink Errors

 *  [fongandrew](https://wordpress.org/support/users/fongandrew/)
 * (@fongandrew)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-wordpress-category-archive-category-archive-permalink-errors/)
 * Same bug as here, but in 3.1: [http://wordpress.org/support/topic/permalink-rewriting-in-30](http://wordpress.org/support/topic/permalink-rewriting-in-30).
 * Tried changing code — didn’t work. Tried changing permalink structure — anything
   not default doesn’t work.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Hugh Mandeville](https://wordpress.org/support/users/hughmandeville/)
 * (@hughmandeville)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-wordpress-category-archive-category-archive-permalink-errors/#post-1941596)
 * See the [category archive plugin FAQ](http://wordpress.org/extend/plugins/wp-category-archive/faq/).
 * To get the plugin to work with permalinks in WP3.1, you need to update the redirect_canonical()
   function in canonical.php. On line 167, wrap the following code:
 *     ```
       $tax_url = parse_url($tax_url);
       if ( ! empty($tax_url['query']) ) { // Custom taxonomies may only be accessable via ?taxonomy=..&term=..
           parse_str($tax_url['query'], $query_vars);
           $redirect['query'] = add_query_arg($query_vars, $redirect['query']);
       } else { // Taxonomy is accessable via a "pretty-URL"
           $redirect['path'] = $tax_url['path'];
       }
       ```
   
 * in an if (is_tax()) block:
 *     ```
       if (is_tax()) {
           $tax_url = parse_url($tax_url);
           if ( ! empty($tax_url['query']) ) { // Custom taxonomies may only be accessable via ?taxonomy=..&term=..
               parse_str($tax_url['query'], $query_vars);
               $redirect['query'] = add_query_arg($query_vars, $redirect['query']);
           } else { // Taxonomy is accessable via a "pretty-URL"
               $redirect['path'] = $tax_url['path'];
           }
       }
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: WordPress Category Archive] Category Archive / Permalink Errors’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-category-archive.svg)
 * [WordPress Category Archive](https://wordpress.org/plugins/wp-category-archive/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-category-archive/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-category-archive/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-category-archive/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-category-archive/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-category-archive/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Hugh Mandeville](https://wordpress.org/support/users/hughmandeville/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-wordpress-category-archive-category-archive-permalink-errors/#post-1941596)
 * Status: not resolved