Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Display block in theme template files
$block = get_post( 123 ); // Change 123 to the unique post ID for your block
echo apply_filters( 'the_content', $block->post_content );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment