[wp-trac] [WordPress Trac] #16323: Hierarchical Custom Post Type Bug - invalid name query var generated

WordPress Trac wp-trac at lists.automattic.com
Thu Jan 20 20:07:42 UTC 2011


#16323: Hierarchical Custom Post Type Bug - invalid name query var generated
--------------------------+-----------------------------
 Reporter:  jrcowher      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Permalinks    |    Version:  3.0.4
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 When starting off with the post type set to non-hierarchical and then
 setting the hierarchical parameter in register_post_type() to true
 Wordpress will generate an invalid name query var (see attached files). If
 a generate a new rewrite rule in my functions file (e.g.
 service/(.*?)/(.*?)/?$' => 'index.php?post_type=service&name=$matches[2])
 this appears to fix the problem. Removing the custom rewrite rule will
 cause the error to reappear.

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


More information about the wp-trac mailing list