Title: Custom Post Type Capability Problems
Last modified: August 20, 2016

---

# Custom Post Type Capability Problems

 *  [Loren](https://wordpress.org/support/users/nbseminary/)
 * (@nbseminary)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/custom-post-type-capability-problems/)
 * I am designing a website for teachers and students to post and review assignments
   for academic courses. There will be both student and teacher roles created and
   I need to be able to have students only be able to view, create and publish to
   one custom post type (Submissions) and not be able to edit or create any thing
   else. In register_post_type i put this in for capabilities.
    `'capability_type'
   => 'submissions',` `'capabilities' => array(` `'publish_posts' => 'publish_submissions',``'
   edit_posts' => 'edit_submissions',` `'edit_published_posts' => 'edit_published_submissions',``'
   delete_published_posts' => 'delete_published_submissions',` `'edit_others_posts'
   => 'edit_others_submissions',` `'delete_posts' => 'delete_submissions',` `'delete_others_posts'
   => 'delete_others_submissions',` `'read_private_posts' => 'read_private_submissions',``'
   edit_post' => 'edit_submission',` `'delete_post' => 'delete_submission',` `'read_post'
   => 'read_submission',` `),` However when I log in with a student profile I can
   view the Student Submissions section but when I try to Publish a post I get an
   error telling me “You are not allowed to edit this post”. If I back up in my 
   browser the post has been created but I only have “View” capability. What am 
   I missing? I have searched all over the web and cannot find any discussion of
   this problem. I have read Justin Tadlock’s article on capabilities but am not
   able to find an answer to this issue.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [Loren](https://wordpress.org/support/users/nbseminary/)
 * (@nbseminary)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/custom-post-type-capability-problems/#post-2838252)
 * The Custom Post Type is created but with errors when publishing. Here is a link
   to a sample “Student Submission” [ created by a test “Student” user.](http://courses.nbseminary.ca/submission/testing/)
 *  Thread Starter [Loren](https://wordpress.org/support/users/nbseminary/)
 * (@nbseminary)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/custom-post-type-capability-problems/#post-2838486)
 * I figured it out. Besides `'edit_posts' => 'edit_submissions'` I needed to have`'
   edit_posts' => 'edit_submission'` – singular.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom Post Type Capability Problems’ is closed to new replies.

## Tags

 * [capabilities](https://wordpress.org/support/topic-tag/capabilities/)
 * [capability](https://wordpress.org/support/topic-tag/capability/)
 * [custom post type](https://wordpress.org/support/topic-tag/custom-post-type/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 1 participant
 * Last reply from: [Loren](https://wordpress.org/support/users/nbseminary/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/custom-post-type-capability-problems/#post-2838486)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
