I apologize I forgot to say that I wrote these code on theme’s functions.php
add_action( 'init', function () {
register_post_type( 'news', [
'label' => 'Latest News!',
'public' => true,
'menu_position'=>30,
'supports' => array('title', 'editor', 'thumbnail' ),
'show_in_rest'=>true,
'has_archive' =>true,
]);
});
Thank you very much for your answer. After modifying class.xmlsf-sitemap.php
, Fatal errors disappeared. Fixed??
I am looking forward to being next version released.????