First I will show my permalink structure: /%category%/%post-name%/
Then, I created a custom post type. And now I want to create an archive for those posts related to my custom post type. So I wonder, how will I do that?
Viewing it in the WordPress documentation, there is something about create a archive-{post-type}.php
file, but I still don’t understand how it works, and it says nothing about how the permalinks will look like.
What should I do?
Custom post types don’t have archives, this will be a new feature in WP 3.1 (with the
has_archive
argument when registering them). There are multiple ways for emulating these archives in WP 3.0, one of them is explained in another question here.A quote from that question:
That! That is what not work for me. But that is excacly how I want it to work.