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

So I'm working on a plugin for creating a questions/answers system that's as simple and well-integrated as possible (not unlike this site) but am stuck at the creation of the custom post types.

You can see my current code here: http://pastebin.com/MXjPVuPQ

The key is in allowing all users (down to "subscribers") to post questions and answers, edit their own posts, etc., whilst admins can manage and moderate these. So following a tutorial, I've got the basics going. Subscribers can create their own questions and answers and edit their own, but not others'.

However, these can't be deleted. Using the "Members" plugin I've given the appropriate capabilities (reference?) but not even an admin can delete their own or others' posts. I'm not really sure why this is happening, any obvious hints or something I'm missing?

share|improve this question

Your Answer


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

Browse other questions tagged or ask your own question.