You do not have sufficient permissions to access this page.
-
Hi,
I have a new user set up with editor rights.
He can edit posts and pages etc.I have created several custom post types using something like this:
add_action('init', 'people_codex_custom_init'); function people_codex_custom_init() { $labels = array( 'name' => _x('People', 'post type general name'), 'singular_name' => _x('people', 'post type singular name'), 'add_new' => _x('Add New', 'Person'), 'add_new_item' => __('Add New Person'), 'edit_item' => __('Edit People'), 'new_item' => __('New People'), 'view_item' => __('View People'), 'search_items' => __('Search people'), 'not_found' => __('No people found'), 'not_found_in_trash' => __('No people found in Trash'), 'parent_item_colon' => '', 'menu_name' => 'People' ); $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => 'bplAdmin', 'query_var' => true, 'rewrite' => true, 'capability_type' => 'post', 'has_archive' => true, 'hierarchical' => false, 'menu_position' => null, 'supports' => array('title','editor','thumbnail', 'revisions', 'comments'), 'register_meta_box_cb' => 'myplugin_add_custom_box' ); register_post_type('People',$args); }
The user I created cannot edit or list these posts even though they have the capability type post?
You do not have sufficient permissions to access this page.
Any ideas?
-
Hm, can’t seem to find out what’s wrong…
I’ve tried adding custom capabilities in an array then adding capability type to my own custom capabilities but it just stopped the menu from appearing and of course did not solve the permissions problem.
I just want my custom post types to have the same permissions as normal posts.
Don’t bump your post (all the bumps have been deleted).
Are you using any membership plugins or are they just standard account types?
Just standard account types. Plugins installed are “Advanced custom fields”… So i’d imagine it won’t be that interfering.
so the typical admin has full control over evrtyhing.If I create an editor user.. the editor has control over everything but my custom post types.
*bump*
- The topic ‘You do not have sufficient permissions to access this page.’ is closed to new replies.