[wp-trac] [WordPress Trac] #15082: Custom post type empty slug breaks permalinks for pages

WordPress Trac wp-trac at lists.automattic.com
Thu Jan 5 14:18:23 UTC 2012


#15082: Custom post type empty slug breaks permalinks for pages
--------------------------+-----------------------
 Reporter:  firebird75    |       Owner:
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  3.1
Component:  Post Types    |     Version:  3.3.1
 Severity:  normal        |  Resolution:
 Keywords:  2nd-opinion   |
--------------------------+-----------------------
Changes (by ciantic):

 * status:  closed => reopened
 * version:  3.0.1 => 3.3.1
 * resolution:  fixed =>


Comment:

 Replying to [comment:10 nacin]:
 > (In [17298]) Don't allow an empty rewrite slug for CPT. If you need
 something like this, do rewrite=>false. fixes #15082.

 How? There is gazillion ways to do this by Googling, but most of them
 overtly complicated for what it should be... Can't find the WP3.3 specific
 answer though! Some uses htaccess, some uses multiple tricks to rewrite
 the slug part with replacing string at some "handy spot".

 Why can't there be API just like for regular post_type=post, where one can
 define "/%postname%/" in WP 3.3?

 I know this is not Q&A, so I've started
 [http://wordpress.stackexchange.com/questions/37650/wordpress-3-3-custom-
 post-type-with-postname "Wordpress 3.3 custom post type with /%postname%/"
 in Wordpress StackExchange].

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15082#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list