I'm trying to add a specific role to manage my custom post types and I'm stuck at the very beginning.
I've added add_role() to the functions.php file as following:
add_role('resourcerer', 'Resourcerer', array('read_internal_jobs'));
and created a user with that role. However, when I try to login with a new user I would get an error You do not have sufficient permissions to access this page. I can't figure out what I'm doing wrong here :S
When registering my Custom Post Type I've got the following settings:
'capability_type' => array('internal_job', 'internal_jobs'),
'map_meta_cap' => true,
which, if I understand the register_post_type() Codex correctly, by specifying capability_type the capabilities strings will be constructed respectively using the strings specified in the capability_type, for example: edit_internal_jobs, publish_internal_jobs and so on.
I would really appreciate any help!