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 am in a similar situation to this person, only I need a bit more hand-holding. I don't have a good understanding of php but can cut and paste code with the best of them.

I have Justin Tadlock's Members plugin, and have set up a custom post type and associated custom taxonomies in my functions.php file.

Here's what I'm trying to accomplish:

  • User registers and is set as Contributor by default.
  • User can now see only this custom post type and can make an entry to this post type, but not publish it.
  • User can only see and edit their own post(s).

If possible, I need specifics on what and where to add to my post type registration function. I understand it involves 'map_meta_cap' and 'capability_type' but I don't know how to write the code or where to put it in the function. Once the capabilities are established I can add them as custom capabilities in the Members plugin.

share|improve this question

I figured it out on my own -- the code snippet I needed to follow is here. Justin Tadlock is the man.

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.