Site icon Hip-Hop Website Design and Development

Enable Editor to view/modify a customized put up kind

I created three new customized put up varieties and so they all work effective for my admin person. A Person with the Editor position can see the menu objects within the admin, however once they click on one it says:

“Sorry, you aren’t allowed to entry this web page.”

It has been driving me loopy, any concept what I’m lacking?

// The customized operate MUST be hooked to the init motion hook
add_action( 'init', 'handbook_noodles_post_type', 0 );

// A customized operate that calls register_post_type
operate handbook_noodles_post_type()
{
    // Set numerous items of textual content, $labels is used contained in the $args array
    $labels = array(
        'title' => 'Noodles's Handbook',
        'singular_name' => 'Noodles's Web page',
        'add_new' => __( 'Add New Web page' ),
        'add_new_item' => 'Add New Web page',
        'edit_item' => 'Edit Web page',
    );

    // Set numerous items of details about the put up kind
    $args = array(
        'labels' => $labels,
        'description' => 'Noodles's Handbook Pages',
        'public' => true,
        'exclude_from_search' => true,
        'query_var' => false,
        'show_in_menu' => 'employee_handbook.php',
        'helps' => array('title', 'editor', 'page-attributes'),
        'hierarchical' => true,
        'has_archive' => true,
        'capability_type' => 'put up',
        'map_meta_cap' => true
    );

    register_post_type( 'noodles-handbook', $args );
}