Thank you very much for your response @erania-pinnera I tried your recommendations and nothing yet, yes I added the code in my custom post types below there is the code I used for 2 years working perfect,
// <!-- ****************************************** -->
// <!-- Service alerts post type -->
// <!-- ****************************************** -->
function ripta_alerts() {
$labels = array(
'name' => _x( 'Alerts', 'post type general name' ),
'singular_name' => _x( 'Alerts', 'post type singular name' ),
'add_new' => _x( 'Add New', 'Alert' ),
'add_new_item' => __( 'Add New Alert' ),
'edit_item' => __( 'Edit Alert' ),
'new_item' => __( 'New Alert' ),
'all_items' => __( 'All Alert' ),
'view_item' => __( 'View Alert' ),
'search_items' => __( 'Search Alert' ),
'not_found' => __( 'No Alert found' ),
'not_found_in_trash' => __( 'No Alerts found in the Trash' ),
'parent_item_colon' => '',
'menu_name' => 'Alerts'
);
$args = array(
'labels' => $labels,
'description' => 'These are the RIPTA services alerts',
'public' => true,
// 'menu_position' => 5,
'show_in_rest' => true,
'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ,'author', 'publicize' ),
'has_archive' => true,
//'taxonomies' => array('category' , 'post_tag'),
);
register_post_type( 'alerts', $args );
}
add_action( 'init', 'ripta_alerts' );
One thing I noticed is that in the dev site which is the site I shared I see a Unknown error (but im able to push regular posts) when I use the Jetpack debugger but in the live site https://www.ripta.com/ it says that it is perfect but I′m still having the same problem with the custom post types, before I was able to share any custom post type I wanted, but now only regular posts works.
Thank you very much for your help.