WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've gotten my custom post types to display as it should in date based archives; the structure example.com/year/month/day (and above) works properly as long as it's extended with '?post_type=post_type_name'.

With Bainternets solution I've also gotten wp_get_archives to properly list archives based on whether or not they contain my CPT.

The problem is that wp_get_archives still returns the default archive permalinks, like this:


but as I mentioned earlier, I need:


Any suggestions on how to achieve this?

share|improve this question
I found a plugin that does exactly what I need: wordpress.org/extend/plugins/custom-post-type-archives Problem solved! – Anna May 9 '11 at 10:13
Add your solution as an answer and mark the question as answered. – toscho May 1 '12 at 0:48
up vote 1 down vote accepted

From comment:

Use the plugin Custom Post Type Archives. It is slightly more flexible than the argument 'has_archive' => TRUE for register_post_type().

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.