$attributes['postId'], 'post_type' => $attributes['postType'], ); $this->setup_query( $args, $attributes, $block_instance ); if ( ! $this->query->found_posts ) { return ''; } $output = $this->get_content_from_template( $attributes ); if ( $output ) { return $output; } if ( apply_filters( 'advanced_posts_blocks_use_default_template', true, $this->name ) ) { $output = $this->get_content_from_default_template( $this->name ); } return $output; } }