[wp-trac] [WordPress Trac] #15239: register_post_type rewrite argument breaks template hierarchy

WordPress Trac wp-trac at lists.automattic.com
Thu Oct 28 13:04:43 UTC 2010


#15239: register_post_type rewrite argument breaks template hierarchy
--------------------------+-------------------------------------------------
 Reporter:  croakingtoad  |       Owner:                    
     Type:  defect (bug)  |      Status:  new               
 Priority:  normal        |   Milestone:  Awaiting Review   
Component:  Post Types    |     Version:  3.0.1             
 Severity:  normal        |    Keywords:  register_post_type
--------------------------+-------------------------------------------------

Comment(by croakingtoad):

 I should add, in the above instance, neither single-lego-sets.php nor
 single-sets.php works.  In fact, it doesn't seem to matter what you call
 the CPT or rewrite it to, the template hierarchy just stops working.  If
 you leave the rewrite argument off or just give it a true/false value
 (instead of a rewritten slug) then the template hierarchy is preserved.

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


More information about the wp-trac mailing list