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

Transform multiple articles to Gutenberg #15245

Closed
pwartbichler opened this issue Apr 29, 2019 · 1 comment
Closed

Transform multiple articles to Gutenberg #15245

pwartbichler opened this issue Apr 29, 2019 · 1 comment
Labels
[Type] Help Request Help with setup, implementation, or "How do I?" questions.

Comments

@pwartbichler
Copy link

Hello,

we have several thousand articles and would like to save ourselves the trouble of manually converting them all to Gutenberg. Is there a way?

Thanks for your help!

@Soean Soean added the [Type] Help Request Help with setup, implementation, or "How do I?" questions. label Apr 29, 2019
@Soean
Copy link
Member

Soean commented Apr 29, 2019

Hey,
this is not possible at the moment.

At the moment such a function does not exist. Mainly because block types are only registered in JavaScript and on the server you have no idea which blocks exist.
However, server-side block registration is planned as per #2751. Once that is done, we will be able to provide such a function for developers.

If you're adventurous, I think you can still use a node script running jsdom and use the wp.blocks.rawHandler function. Otherwise, you should wait for phase 2 work around server side awareness of blocks #2751

See #13163

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Help Request Help with setup, implementation, or "How do I?" questions.
Projects
None yet
Development

No branches or pull requests

2 participants