getPreviewPost( $postId ); $postId = $previewPost->ID; } $this->render( $block, $content, $postId ); } protected function render( $block, $content, $postId ) { ob_start(); $image = get_field('image'); $size = 'full'; $boxedWidth = get_field( 'boxed_width' ); ?>