[wp-trac] [WordPress Trac] #14675: Enhancement: Better Post Type Handling for Permalinks and Queries

WordPress Trac wp-trac at lists.automattic.com
Mon Aug 23 15:44:30 UTC 2010


#14675: Enhancement: Better Post Type Handling for Permalinks and Queries
-------------------------+--------------------------------------------------
 Reporter:  johnpbloch   |       Owner:                                      
     Type:  enhancement  |      Status:  new                                 
 Priority:  normal       |   Milestone:  Awaiting Review                     
Component:  Post Types   |     Version:                                      
 Severity:  normal       |    Keywords:  WP_Query, Post Types, WP, Permalinks
-------------------------+--------------------------------------------------
 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14675>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list