Custom Post Type Archives by Year & Month?

Posted by Prem Tiwari | Updated on

Yes, you can. All you need is make a filter for wp_get_archives(); so it accepts post_type parameter:

then call this:

Whenever you want to display archive by custom post type, just pass the post_type args:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers