WordPress.org

Make WordPress Core

Opened 6 months ago

#47072 new defect (bug)

Hierarchical post types missing attributes meta box if post type doesn't support 'page-attributes' or have templates

Reported by: natereist Owned by:
Milestone: Awaiting Review Priority: normal
Severity: minor Version: 5.1.1
Component: Posts, Post Types Keywords: needs-patch
Focuses: Cc:
PR Number:

Description

Setting the hierarchical argument to true in the register post type function doesn't enable the post parent automatically. In order for this meta box to show up you must also enable post type support for page-attributes or the post type must have templates. I would think the post parent dropdown should be visible by default if the post type is hierarchical. This applies to both the Classic and Gutenberg editor.

Change History (0)

Note: See TracTickets for help on using tickets.