posts = $post; parent::__construct($block_type, $args); } /** * Render the output * * @param array $attr The attribute for the shortcode. * @param array $content The content for the shortcode. * * @return string The output of the shortcode. */ public function render($attributes = [], $content = '') { $this->posts->get_widget_args($attributes); return $this->posts->output(); } }