Make WordPress Core

Opened 7 years ago

Closed 5 months ago

#47072 closed defect (bug) (worksforme)

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

Reported by: natereist's profile natereist Owned by:
Milestone: Priority: normal
Severity: minor Version: 5.1.1
Component: Editor Keywords: needs-patch
Focuses: Cc:

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 (1)

#1 @SirLouen
5 months ago

  • Component changed from Posts, Post Types to Editor
  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed

This was sorted out in Gutenberg some time ago (I don't remember a Gutenberg without this).
For classic editor, given the current status, it doesnt seem to be convient to add new features as this has been for a couple years now.
Time to close this.

Note: See TracTickets for help on using tickets.