acfはproだとブロックも作成可能なんですね。しかしなぜか「No block types exist」ってプルダウンに表示されてブロックファイルで設定したtitileが出てこない。

解決
acf/initではなく、initでadd_action()しとく
以前はacf/initで大丈夫だった気がするんだけど気のせいなのか。initにしたら大丈夫だったのでinitにしておこう。
function acf_custom_block_add() {
if ( function_exists( 'acf_register_block_type' ) ) {
acf_register_block_type(
array(
'name' => 'b-col2',
'title' => __( '2カラム' ),
'description' => __( '2カラムです。' ),
'render_template' => './acf/blocks/b-col2.php',
'category' => 'formatting',
'keywords' => array( '2カラム', 'ブロック' ),
'mode' => 'auto',
)
);
}
}
add_action( 'init', 'acf_custom_block_add' );
出てきた。

コメント