RPeraltaJr
10/9/2019 - 1:49 PM

Get Gutenberg Blocks Content

<?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;