Custom Content Type with No Page View

When register your CPT, to make the content type don’t have a view, you cant set publicly_queryable to false. According to the Codex, “If you set this to FALSE, you will find that you cannot preview/see your custom post (return 404).”

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