
Convert to Blocks transforms classic editor content to blocks on-the-fly.
Convert to Blocks is a WordPress plugin that transforms classic editor content to blocks on-the-fly. After installing Gutenberg or upgrading to WordPress 5.0+, your content will be displayed in “Classic Editor Blocks”. While these blocks are completely functional and will display fine on the frontend of your website, they do not empower editors to fully make use of the block editing experience. In order to do so, your classic editor posts need to be converted to blocks. This plugin does that for you “on the fly”. When an editor goes to edit a classic post, the content will be parsed into blocks. When the editor saves the post, the new structure will be saved into the database. This strategy reduces risk as you are only altering database values for content that needs to be changed.
Note that Inner Blocks Transforms is only supported with the Gutenberg Plugin 10.9.0+.
/convert-to-blocks directory to the /wp-content/plugins/ directory.Find a classic editor in the post, try to navigate away from the page. You will get an error saying your changes will be discarded. This is because Convert to Blocks converted your content to blocks on the fly and those changes will be saved when you update the post.
By default it will not.
Nested / Inner Block support does not work with Gutenberg bundled with WordPress Core <=5.7.2. This feature needs the Gutenberg Plugin >=10.9.0.
enable_block_editor method only to alter posts that support the gutenbridge (props @stormrockwell, @Sidsector9, @jeffpaul, @dsawardekar via #136).actions/upload-artifact from v3 to v4 (props @iamdharmesh via #162).follow-redirects from 1.15.2 to 1.15.4 (props @dependabot, @dkotter via #153).browserify-sign from 4.0.4 to 4.2.2 (props @dependabot, @dkotter via #145).@babel/traverse from 7.11.5 to 7.23.7 (props @dependabot, @dkotter via #155).@wordpress/scripts in our build workflow (props @Sidsector9, @dkotter via #167).@cypress/request from 2.88.11 to 3.0.1 and cypress from 10.11.0 to 13.3.0 (props @dependabot, @iamdharmesh, @ravinderk via #138).postcss from 8.4.20 to 8.4.31 (props @dependabot, @dkotter via #139).fsevents from 1.2.9 to 1.2.13 (props @dependabot, @ravinderk via #140).composer.json config (props @c0ntax, @Sidsector9 via #122).minimist from 1.2.0 to 1.2.7 and mkdirp from 0.5.1 to 0.5.6 (props @dependabot via #117).ini from 1.3.5 to 1.3.8 (props @dependabot via #119).browser-sync from 2.27.10 to 2.29.3 and removes qs (props @dependabot via #120).word-wrap from 1.2.3 to 1.2.5 (props @dependabot via #127).Note that this release bumps the WordPress minimum version from 5.7 to 6.1 and the PHP minimum version from 7.4 to 8.0.
convert_to_blocks_update_posts_query_params to modify WP_Query parameters to query posts that need to be migrated (props @kmgalanakis, @Sidsector9, @sanketio via #113).Note that this version bumps the minimum PHP version from 7.0 to 7.4 and the minimum WordPress version from 5.4 to 5.7.
is-svg as it is no longer used after updating ancestor dependency postcss-svgo (props @dependabot via #85).socket.io-parser from 3.2.0 to 4.2.1 and browser-sync from 2.26.7 to 2.27.10 (props @dependabot via #81).minimatch from 3.0.4 to 3.1.2 (props @dependabot via #82).nth-check from 1.0.2 to 2.1.1 and cssnano from 4.1.10 to 5.1.14 (props @dependabot via #84).postcss-svgo from 4.0.2 to 4.0.3 (props @dependabot via #85).minimist from 1.2.0 to 1.2.7 and mkdirp from 0.5.1 to 0.5.6 (props @dependabot via #86).loader-utils from 1.2.3 to 1.4.2 and webpack-cli from 3.3.10 to 3.3.12 (props @dependabot via #89).glob-parent from 5.1.0 to 5.1.2 and watchpack from 1.6.0 to 1.7.5 (props @dependabot via #90).kind-of from 6.0.2 to 6.0.3 (props @dependabot via #93).serialize-javascript from 2.1.2 to 4.0.0 and terser-webpack-plugin from 1.4.3 to 1.4.5 (props @dependabot via #94).engine.io from 6.2.0 to 6.2.1 (props @dependabot via #95).decode-uri-component from 0.2.0 to 0.2.2 (props @dependabot via #97).