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).”
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).”