#16409 closed enhancement (invalid)
Post types permalink and behavior
| Reported by: | Mr. NiceGuy | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Posts, Post Types | Version: | 3.1 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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/.