<?php $post = get_post(); if ( has_blocks($post->post_content) ): $blocks = parse_blocks( $post->post_content ); foreach($blocks as $block): echo $block['innerHTML']; endforeach; endif;