AFC(Advanced Custom Fields)を使用してした時、カスタム投稿タイプの投稿編集画面にフィールドは追加されるけど、「設定」の内容を変更しても反映されない事象があった。
今回は、コンテンツエディタを非表示に設定したのに消えてくれないといった感じ。
![](https://res.cloudinary.com/zenn/image/fetch/s--G6bfXbmo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_1200/https://storage.googleapis.com/zenn-user-upload/deployed-images/09912b3647112ef3a1eeb617.png%3Fsha%3D4d69b37a0487c6bef9e6d1c76da661578a6bf2c1)
原因
原因は、Gutenberg ブログエディタのせいだった。
対処法
対処法としては、カスタム投稿のプラグイン「Custom Post Type UI」を使っているなら、「投稿タイプ編集」で 「REST API で表示」を「偽」にすることで、その投稿タイプだけを無効化できる。
![](https://res.cloudinary.com/zenn/image/fetch/s--IkkPOYpb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_1200/https://storage.googleapis.com/zenn-user-upload/deployed-images/99ad6bd6ed7f785813964a37.png%3Fsha%3Dd5359a02bdcdd241a053b4295e3147f7e8cef7e3)
Discussion