I’m looking for a solution to properly disable the single view for a custom post type. Is it possible in register_post_type ?
1 Answer
Yes, when you are using register_post_type
use this.
'publicly_queryable' => false
Note: This hides your post to display in archive pages also.