Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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:

example.com/year/month/day

but as I mentioned earlier, I need:

example.com/year/month/day?post_type=post_type_name

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.