Title: Custom post type capabilities
Last modified: August 20, 2016

---

# Custom post type capabilities

 *  [jduffell](https://wordpress.org/support/users/jduffell/)
 * (@jduffell)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/custom-post-type-capabilities-1/)
 * Ola, just trying to setup a custom post type, something I’ve never had issues
   with, my issue is when I add capabilities to the post type is when I have issue,
   the post type seems to disappear, get the feeling I’ve missed something really
   obvious out. I’ve registered several other post type without capabilities which
   all work however this one just doesn’t appear, if a fresh pair of eyes could 
   take a look that would be great, ta.
 *     ```
       register_post_type( 'teacher',
       	array(
       	'labels' => array(
       	'name' => __( 'Teachers' ),
       	'singular_name' => __( 'Teacher' )
       	),
       	'public' => true,
       	'has_archive' => true,
       	'supports'  => array(
       	'custom-fields',),
       	'capability_type' => 'teacher',
       	'capabilities' => array(
       	'publish_posts' => 'publish_teachers',
       	'edit_posts' => 'edit_teachers',
       	'edit_others_posts' => 'edit_others_teachers',
       	'delete_posts' => 'delete_teachers',
       	'delete_others_posts' => 'delete_others_teachers',
       	'read_private_posts' => 'read_private_teachers',
       	'edit_post' => 'edit_teacher',
       	'delete_post' => 'delete_teacher',
       	'read_post' => 'read_teacher',),
       	)
       	);
       ```
   

Viewing 1 replies (of 1 total)

 *  Thread Starter [jduffell](https://wordpress.org/support/users/jduffell/)
 * (@jduffell)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/custom-post-type-capabilities-1/#post-2886286)
 * I’ve discovered that if I alter the capability type to anything other than ‘post’
   the post type will disappear :s

Viewing 1 replies (of 1 total)

The topic ‘Custom post type capabilities’ is closed to new replies.

 * 1 reply
 * 1 participant
 * Last reply from: [jduffell](https://wordpress.org/support/users/jduffell/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/custom-post-type-capabilities-1/#post-2886286)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
