How to Import Gutenberg Blocks
To import Gutenberg Blocks into WordPress using WP All Import, you need to define the blocks in the import template manually. To do this, create a post using the blocks you'd like to import, and then copy and paste them into the WP All Import content box on the Edit Import page. Replace the content with the data you'd like to import, and then run your import.
Step 1: Obtain Gutenberg Data Example
Manually create a post that contains the Gutenberg blocks you want to import.
Step 2: Copy and Adjust HTML Block Data
View the HTML of the manually created post:
You can also select the blocks directly in Gutenberg, copy them, and then paste the blocks directly into WP All Import.
Step 3: Use The Adjusted Data While Importing
Paste the data into the Content area of your import, then replace static text with the appropriate import elements:
Make sure to use the Text tab and not the Visual tab to input these blocks.
Here's an example that imports a {content[1]} element into a paragraph block:
<!-- wp:paragraph -->
<p>{content[1]}</p>
<!-- /wp:paragraph -->
Braces or opening brackets that are unrelated to the WP All Import template XPath will need to be escaped: "\{", "\}" and "\[".
Depending on the blocks you're planning on using, you may have to write custom code that uses our API to import them (https://www.wpallimport.com/documentation/action-reference/).