Forums

Anyone managed to make a custom post type WITHOUT add posts being visible? (3 posts)

  1. richarduk
    Member
    Posted 1 year ago #

    I'm really struggling. Has anyone managed to create a custom post type WITHOUT Posts / Add New appearing in the top left nav?

    If so, I want to know how it's done, because when I do that the categories and post_tags are grayed out.

    For example, I can get my custom post type Reviews / Add A New Review to show up with nothing else in the menu, but then I can't tick the radio buttons for the categories (because they're grayed out).

    When I add edit_posts to my role capability then the categories and post links are ungreyed and I can use them BUT Posts / Add New appears in the top left menu.

    Is this just me? Has anyone else managed to get this to work? I feel that I know custom post types and roles inside out (I don't, but I've spent that much time trying to get this to work) and yet I'm stuck on this one miserable glitch.

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 1 year ago #

    do you include the taxonomies when registering the post type?

    'taxonomies' => array( 'post_tag', 'category'),
  3. richarduk
    Member
    Posted 1 year ago #

    I do :-) Thanks.

    I've spent way, way too much time scouring the internet and one thing I've figured out that nobody ever mentions is that you have to have the 'read' capability for a 'pure' custom post. Without that there aren't sufficient permissions to access the admin panel. ('Read' displays the Dashboard link, but that can be removed with a bit of code I found somewhere).

    I wonder if no one else has tried creating a 'pure' custom post? Or if everyone always creates 'hybrid' custom post types, which also include the ability to create standard posts?

Topic Closed

This topic has been closed to new replies.

About this Topic