我有个大问题。我编写了以下代码:
$blocks = parse_blocks( $post->post_content );
foreach ( $blocks as $block ) {
if( $block[\'blockName\'] != \'\' ) {
$blocks_2[] .= render_block( $block );
}
}
$num_blocks = cont($blocks_2);
for ($i = 2; $i <= $num_blocks; $i++) {
echo $blocks_2[$i];
}
一切都很好,但它不会以嵌入格式显示我的代码块(instagram、twitter),就像url一样。
有人能帮我吗?