Add support to get_archive_template() for custom content types
|Reported by:||johnonolan||Owned by:|
|Component:||Posts, Post Types||Keywords:|
Relevant to #12105
It would be great if custom content types could have their own category page templates.
Why? Primarily because if I have a custom content type, then I want people to be able to browse that content type, and I don't want them to browse the content type with the same styling and format as normal blog entries.
For example if I have a custom content type of "books", then I want a category page for books with a loop that returns all of my "books" in a custom format.
Continuing with this example, if I write a post called "A Book" then the slug becomes example.com/books/a-book/ however /example.com/books/ returns a 404. This is where I'd like to see archive-post_type.php kick in.
The new approach:
This seems like a fairly obvious one to me (in place of hacking around with pages and custom-page-templates)
Change History (29)
comment:18 in reply to: ↑ 17 ; follow-up: ↓ 25 @mikeschinkel — 5 years ago
- Cc mikeschinkel@… removed