#16409 closed enhancement (invalid)
Post types permalink and behavior
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 3.1 |
| Component: | Posts, Post Types | Keywords: | |
| Focuses: | Cc: |
Description
Post types autom. have a permalink with category base. This should no be the case?!
Post types should behave more like categories.
When using the url mysite.com/category/science (at least) archive.pgp is fired. There also should be an post-type-archive.php
The url mysite.com/category/ brings 404. I can use a page with the name "category" to create an overview for all categories.
This doesn't work for post types.
When trying to use post types for news you want to habe a permalink mysite.com/news (showing an overview of all news) and the post types with mysite.com/news/the-new-info.html
Theres no way to do that with the post types.
Change History (2)
Note: See
TracTickets for help on using
tickets.
It is supported. See #13818.
You have to set the has_archive parameter when registering the custom post type:
http://mark.mcwilliams.me/2010/10/wordpress-3-1-introduces-custom-post-type-archives/.