[wp-trac] [WordPress Trac] #39648: Wordpress is unable to query post types with hierarchical set to 'true' when there is 'order' registred post type

WordPress Trac noreply at wordpress.org
Fri Jan 20 09:09:34 UTC 2017


#39648: Wordpress is unable to query post types with hierarchical set to 'true'
when there is 'order' registred post type
-------------------------------+----------------------
 Reporter:  MateuszP1          |       Owner:
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:
Component:  Posts, Post Types  |     Version:  4.7
 Severity:  normal             |  Resolution:  invalid
 Keywords:  close              |     Focuses:
-------------------------------+----------------------
Changes (by SergeyBiryukov):

 * keywords:   => close
 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 Hi @MateuszP1, welcome to Trac! Thanks for the ticket.

 As noted above, `order` is one of the reserved terms and should not be
 used as a post type key. Try using `my-order` or something similar
 instead.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39648#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list