WordPress.org

Make WordPress Core

Opened 6 months ago

Closed 6 months ago

#45608 closed defect (bug) (invalid)

register_post_type and show_in_rest issue

Reported by: papazetis Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.0
Component: Posts, Post Types Keywords:
Focuses: Cc:

Description

If show_in_rest parameter is false in register_post_type, classic editor is the default editor when you are trying to create a new post on that post type and there is no option to select gutenberg.
I have not installed classic editor plugin.

Change History (3)

#1 @papazetis
6 months ago

  • Component changed from General to Posts, Post Types

#2 @TimothyBlynJacobs
6 months ago

  • Keywords close added

This is expected behavior, the Gutenberg editor requires post types to be available in the REST API in order to function.

#3 @chriscct7
6 months ago

  • Keywords close removed
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

As mentioned above, the Gutenberg editor requires the REST API in order to work. Post types that are not to be shown in REST cannot be used in the Gutenberg editor.

Note: See TracTickets for help on using tickets.