Hi Jacob, You need to modify your codes to make it working with Gutenberg. You need to add the show_in_rest
parameter to your existing codes.
function wp097345_custom_post_type() {
register_post_type( 'portfolio',
array(
'labels' => array(
'name' => __( 'Portfolio' ),
'singular_name' => __( 'Portfolio' )
),
'has_archive' => true,
'public' => true,
'rewrite' => array('slug' => 'portfolio'),
'show_in_rest' => true,
'supports' => array('editor')
)
);
}
add_action( 'init', 'wp097345_custom_post_type' );
Because Gutenberg is backed with ReactJs and requires to enable REST API to support with provided data. Or you can take a look on the Gutenberg Editor with CPT.