Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how add gutenberg to new custom post type #13141

Closed
masami6871 opened this issue Dec 30, 2018 · 2 comments
Closed

how add gutenberg to new custom post type #13141

masami6871 opened this issue Dec 30, 2018 · 2 comments

Comments

@masami6871
Copy link

hi. i created a new custom post type -for example : " Portfolio "

and when i want to leave a post , i don't show gutenberg editor and i saw old wordpress editor .
how can i active gutenberg for my custom type ?
1

@gregbia
Copy link

gregbia commented Dec 31, 2018

When registering a new post type, you need to add REST support.

Add this to your custom post type arguments passed to register_post_type:

'show_in_rest' => true,

@masami6871
Copy link
Author

When registering a new post type, you need to add REST support.

Add this to your custom post type arguments passed to register_post_type:

'show_in_rest' => true,

thank you dear . i do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants