Opened 15 years ago
Closed 14 years ago
#14675 closed enhancement (wontfix)
Enhancement: Better Post Type Handling for Permalinks and Queries
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Permalinks | Keywords: | |
Focuses: | Cc: |
Description
This is an enhancement to add better handling of post type in permalinks and WP_Query. This will fix a few deficiencies in WordPress' handling of these items.
The first deficiency this addresses is that WordPress doesn't automatically handle multi-post queries for custom post types. For example, with a post type 'products', the permastruct is 'products/%products%'
. If someone were to go to http://example.com/products/
they would find a 404 error, not a list of products. This enhancement adds a %post_type%
rewrite tag to WP_Query that gets added to all custom post types when they're registered.
Second, this adds permalink support for all the normal rewrite tags for all post types.
Attachments (2)
Change History (6)
Note: See
TracTickets for help on using
tickets.
I need to update the patch. It's got some flaws in it.