(参考サイト) https://webcre8tor.com/snippets/do-not-link-to-article-page-of-custom-posting-type.html
<?php if (is_singular('カスタム投稿名スラッグ')) { header('Location:' . get_bloginfo('url') . '/カスタム投稿名スラッグ/'); exit(); } ?>