Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#45987 closed defect (bug) (worksforme)

Hierarchical Custom Post Types Missing Parent Drop Down

Reported by: sparkjoystudios's profile sparkjoystudios Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.0.3
Component: Posts, Post Types Keywords:
Focuses: Cc:


After updating to 5.0 (currently running 5.0.3) all hierarchical custom post types are missing the Parent Drop Down in the Page Attributes meta box.

All post types are registered with 'hierarchical' => true, and 'show_in_rest' => true

Pages still has the drop down in the new editor. Changing 'show_in_rest' to false and using the old editor still allows the user to assign parent/child relationships.

Change History (3)

#1 @pento
5 years ago

  • Keywords reporter-feedback added

Thank you for the bug report, @sparkjoystudios!

In your custom post types, are you registering them with a parent_item_colon label?

#2 @sparkjoystudios
5 years ago

  • Keywords close added; reporter-feedback removed
  • Resolution set to worksforme
  • Status changed from new to closed

Hi @pento

I was registering an empty string on that label to avoid unnecessary text, but after testing just now with "Parent:", the dropdown has appeared! So not a bug, but a change in requirements for custom post type registration 5.0 and above. I'll mark this as resolved, thank you for your time!

#3 @pento
5 years ago

  • Keywords close removed
  • Milestone Awaiting Review deleted

Thank you for confirming that, @sparkjoystudios!

Note: See TracTickets for help on using tickets.