我正在尝试使用包含预成型的h2
和h3
. 当我添加core/heading
块,它会自动创建H2
. 为了获得H3
?
我的代码如下所示:
register_post_type(\'custom-post\', array(
// [...]
\'template\' => array(
array(
\'core/heading\',
array(
\'placeholder\' => \'this is a H2\'
)
),
array(
\'core/heading\',
array(
\'heading\' => \'3\', // this does not work
\'placeholder\' => \'this should be a H3\'
)
)
)
));