render( $block, $content, $postId ); } protected function render( $block, $content, $postId ) { $key = get_field('key'); $tm = new \AcfEngine\Core\TemplateManager(); $template = $tm->fetchByKey( $key ); if( !$template ) { print 'SORRY THAT TEMPLATE COULD NOT BE FOUND.'; } $content = $this->parseBlockContent( $template->post_content ); print $content; } }