[wp-hackers] Custom Post Type Archives

Aero Maxx aero.maxx.d at gmail.com
Sat Oct 22 22:21:24 UTC 2011


Could someone point me in the right direction in how to make 
day/month/year archives for custom post types.

Normal blog posts get there archives like 
http://www.domain.co.uk/2010/12 but can I do something similar for 
custom post types, I was thinking/hoping something like this would work 
http://www.domain.co.uk/lotto/2010/12 or 
http://www.domain.co.uk/lotto/2010 but these do not work.

I have has_archive set to true, and this does load the 
archive-{post-type}.php file, but I cant get the year/month/day archive 
to work, it just seems to load this page as is, and doesn't seem to know 
its an archive page.

Thank you.

More information about the wp-hackers mailing list