getPreviewPost( $postId ); $postId = $previewPost->ID; }*/ $this->render( $block, $content, $postId ); } protected function render( $block, $content, $postId ) { $image = get_field('image'); $size = 'full'; print '
'; print wp_get_attachment_image( $image, $size ); print '
'; print ''; /* apply box settings */ $boxedWidth = get_field( 'boxed_width' ); if( $boxedWidth ) { $maxWidth = get_field('max_width'); print ''; } } }