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

Custom block categories don't show up in the card view #23

Open
fabiankaegy opened this issue Jul 31, 2020 · 1 comment
Open

Custom block categories don't show up in the card view #23

fabiankaegy opened this issue Jul 31, 2020 · 1 comment
Labels
question Further information is requested

Comments

@fabiankaegy
Copy link
Collaborator

I have registered a custom Block category via PHP and am using the name of that custom category in the registerBlockType function. But it doesn't show up in the Card view.
Screen Shot 2020-07-31 at 10 27 45

@youknowriad
Copy link
Owner

youknowriad commented Jul 31, 2020

I guess the block registration ensures that the category exists on the frontend otherwise it reset it to "undefined". I think you should call wp.data.setCategories on your .blockbook/index.js file with your custom categories in addition to the Core categories.

@youknowriad youknowriad added the question Further information is requested label Jul 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants