WordPress hide post from custom post-type on a single page

Initial situation custom post-type (projects)[projects.php] <?php namespace main_themeextposttypesprojects; function post_type() { $labels = [ 'name' => _x( 'Projects', 'Post Type General Name', 'main_theme' ), 'singular_name' => _x( 'Project', 'Post Type Singular Name', 'main_theme' ), 'menu_name' => __( 'Projects', 'main_theme' ), 'name_admin_bar' => __( 'Projects', 'main_theme' ), 'all_items' => __( 'Alle Projects', 'main_theme' ), 'add_new_item' => … Read more