Enhancement: Better Post Type Handling for Permalinks and Queries
|Reported by:||johnpbloch||Owned by:|
|Cc:||johnpbloch, mikeschinkel@…, jorbin|
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.
Change History (6)
- Cc johnpbloch added
- Keywords WP_Query Post Types WP Permalinks removed
- Cc jorbin added
- Component changed from Post Types to Permalinks
- Milestone changed from Awaiting Review to Future Release