custom post type single page not found after aotumatic publish By the author’s robot

I was able to solve the problem with my reviews. I put the following code into a query.class.php file and the problem was resolved.

static function init(){
    if (!is_blog_admin()) {
        add_action('parse_query', array(__CLASS__, 'parse_query'));
    }
}

static function parse_query($query) {
    if(!is_blog_admin() && ($query->get('post_type') == 'iwj_job' || is_tax(iwj_get_job_taxonomies())) && $query->is_main_query()) {
    $query->set( 'post_type', array( 'post', 'iwj_job' ) );
    }           
}