I’m using WP3.0, and I’m very excited about the new Custom Post Types and Taxonomies support (I’m using GD Custom Posts And Taxonomies Tools), but I have some questions as to how they all tie in with templates.
I understand from the codex, that “single-<posttype>.php” will work for posts posted in a particular post type, but what about archives for each post type? Do I just call my template “posttype.php”, and it will work? I tried it but it didn’t seem to work… Is it using “archive.php” by default?
What I have done, which seems cumbersome, is to create a custom template with my custom query to load all posts that correspond to the specific custom type, and then create a page linked to the custom template…
How come it’s so easy to create the templates for the singles, but so hard for the archives?
- The topic ‘Custom Posts Types and Templates’ is closed to new replies.