CPT with no frontend pages

Support MB Custom Post Type CPT with no frontend pagesResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #39162
    shmaltzshmaltz
    Participant

    Hi there,

    I would like to create a CPT that's ONLY accessible from the backend of the website.

    Meaning, no frontend posts, no archives, no rss feeds, search capabilities. If a user goes to the cpt slug url, they should get a 404.

    It's for internal data entry and we can't have any of the data visible to users.

    Is this possible with Metabox?

    Thanks!

    #39172
    PeterPeter
    Moderator

    Hello,

    The plugin MB Custom Post Type helps you to register the custom post type with UI instead of using the WordPress function register_post_type().
    So the question should be "is this possible with WordPress?"
    Yes, it is possible. For example: You can set the argument 'public' => false and 'exclude_from_search' => true to remove frontend posts and exclude them from search.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.