Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#16409 closed enhancement (invalid)

Post types permalink and behavior

Reported by: Mr. NiceGuy Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.1
Component: Posts, Post Types Keywords:
Focuses: Cc:


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)

#1 @sorich87
11 years ago

  • Resolution set to invalid
  • Status changed from new to closed

It is supported. See #13818.

You have to set the has_archive parameter when registering the custom post type:

#2 @nacin
11 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.