Disable single view in register_post_type [duplicate]

Yes, when you are using register_post_type use this.

'publicly_queryable'  => false

Note: This hides your post to display in archive pages also.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)