Title: [Plugin: Custom Post Type Archives] Custom Permalink Issues
Last modified: August 20, 2016

---

# [Plugin: Custom Post Type Archives] Custom Permalink Issues

 *  Resolved [onetrev](https://wordpress.org/support/users/onetrev/)
 * (@onetrev)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-custom-post-type-archives-custom-permalink-issues/)
 * This is both a question and information to save someone the pain I went through.
 * If you have the WordPress – Settings – Permalinks – “Custom Structure” set to
   something hard coded like: _/news/%postname%/_ then the archive links for your
   custom post types do not work!
 * What happens is the hard coded URL gets appending to whatever custom post archive
   rewrite URL you’ve set. For example if you have an Event post type, set to rewrite
   to _/events/_ the URL for the archives is generated as _/events/news/2012/02_.
   Notice the “news” being added to the URL.
 * You can fix this problem by simply having an entirely dynamic URL in your Permalink
   setting, ex: _/%postname%/_.
 * However, if you have your regular post type / blog setup as a sub-folder you 
   then can’t have that folder display in the URL. This is not the end of the world,
   but it’s less than ideal. It means when the user is in say _[http://www.site.com/news/](http://www.site.com/news/)_
   but when they click on archives they get a root URL of just _[http://www.site.com/2012/02/](http://www.site.com/2012/02/)_.
   But then for your custom post type archives they get nice subfolder URLs. We 
   should be able to have it for post standard and CPTs.
 * Is there any way to fix this?? Thank you so much in advance.

Viewing 1 replies (of 1 total)

 *  Thread Starter [onetrev](https://wordpress.org/support/users/onetrev/)
 * (@onetrev)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-custom-post-type-archives-custom-permalink-issues/#post-2557702)
 * Just in case someone is looking, this issue was solved by some kind person — 
   the solution can be found in this other support post:
 * [http://wordpress.org/support/topic/plugin-custom-post-type-archives-paging-problem-with-yearlymonthly-archives?replies=4#post-2655714](http://wordpress.org/support/topic/plugin-custom-post-type-archives-paging-problem-with-yearlymonthly-archives?replies=4#post-2655714)
 * If only the plugin could be updated by the developer now, as this bug caused 
   me so much trouble. However, it’s still hard to believe monthly/yearly CPT archive
   functionality still isn’t built into the core WP wp_get_archives() function.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Custom Post Type Archives] Custom Permalink Issues’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-post-type-archives.svg)
 * [Custom Post Type Archives](https://wordpress.org/plugins/custom-post-type-archives/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-post-type-archives/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-post-type-archives/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-post-type-archives/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-post-type-archives/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-post-type-archives/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [onetrev](https://wordpress.org/support/users/onetrev/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-custom-post-type-archives-custom-permalink-issues/#post-2557702)
 * Status: resolved