Wrapping block(s) within shortcode

[ad_1]

Is there an easy way to wrap a block or a set of blocks within a shortcode? For eg:

[shortcode] block 1
block 2
block 3
[/shortcode]

I know I can add two blocks before and after the blocks I want to wrap around, with the opening tag in the first block and closing tag in the second block, but that’s ugly, not to mention I have to deal with the extra spaces.

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer