Asegúrese de tener show_in_rest configurado en verdadero y soporte configurado al menos en editor en el registro CPT, y luego no necesita tener el código anterior ‘use_block_editor_for_post_type’
Como esto :
'show_in_rest' => true,
'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments' ).
Ejemplo completo del código de registro CPT:
function cw_post_type() {register_post_type( 'portfolio',
// WordPress CPT Options Start
array(
'labels' => array(
'name' => __( 'Portfolio' ),
'singular_name' => __( 'Portfolio' )
),
'has_archive' => true,
'public' => true,
'rewrite' => array('slug' => 'portfolio'),
'show_in_rest' => true, // this is a must
'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments' ) // at least array('editor') should be there
)
);
}
add_action( 'init', 'cw_post_type' );
Sí, ese era el problema, muchas gracias, ¡¡¡ahora funciona perfectamente!!!
Genial para ayudarte.
Por favor marque la publicación como RESUELTA.