How to add year and month under Custom Post Type Archive (site.com/post_type/2013/07)?

I register a new Custom Post Type in my WordPress. Everything works. Now, I am trying to have a side bar archive navigation (something like the normal archive widget which doesn’t work for CTPs – at least not for me).

Let’s say the name of my Custom Post Type is boo, so i can access my archive with: mysite.com/boo/. However, I need to access something like mysite.com/boo/2013/06.

Read More

I also tried to do this with categories without success. Any idea would be very welcome.

Related posts

Leave a Reply

2 comments

  1. I dislike plugins very much special for this kind of tasks. I found my answer in this other post. It also creates a function called get_cpt_archives that can be used in the side bar instead of a widget.