WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a new post type called "story"

And a new role called 'Writer' (w/ a 'publish_story' capability)

I want it so that, a Writer when logged in can edit Profile and only edit a custom post type - "story"

However, by adding the 'publish_posts' capability, it allows Writer to also manage other custom post types including the main 'Posts' as well. I just want to restrict user of a certain role/capability to manage certain custom post type only.

This is part of a simple plugin I'm writing to distribute, so I don't want to integrate with other plugins to make it simple, nor tell my users to edit the function.php or users.php.

share|improve this question
up vote 1 down vote accepted

You can create a new role and add specific capabilities.

Or you can conditionally remove access to Edit Posts and any other admin menu items.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.