Support » Themes and Templates » editor access to menus with custom post types

  • I have used this code;

    $roleObject = get_role( 'editor' );
    if (!$roleObject->has_cap( 'edit_theme_options' ) ) {
        $roleObject->add_cap( 'edit_theme_options' );
    }

    to add menu access for editors.

    I have a custom post type ‘Masterclasses”. That appears correctly in the Administrator’s Menu editing page but doesn’t appear in the Editor’s Menu editing page.

    How do I add this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter chrispink

    (@chrispink)

    In fact, delving a little further; I have another custom post type ‘Slide’ for the home page slider and that doesn’t appear in the Menu editing screen for Administrators. I don’t want to add Slides to any menu but I can’t see any difference in the definition with the exception that for Masterclass I have defined a Rewrite[‘slug’] array.

    This seems a little odd – inconsistent.

    Thread Starter chrispink

    (@chrispink)

    Bump!

    I need advice as to whether to submit this as a bug report as it doesn’t seem to have a simple resolution through Roles and Capabilities.

    Ie is it a bug or is it an error in my custom post type definition?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘editor access to menus with custom post types’ is closed to new replies.