My site has several different kinds of post types. One of these is Discussions.

The site is completely open and public, but my client has asked that I provide a space where only certain members can have discussions/post comments. Basically, I want only members/authors/editors/whoevers of my site to see/post new Discussions.

I've explored using bbpress and other forum options, but they're all too complicated.

Is it even possible in WordPress to have only registered users see/post to a Discussions post type?



1 Answer 1


Template Tags for the rescue

  1. Only logged in users:

  2. Only logged in users that have a certain capability assigned to their role

  3. Only logged in users that have a specific role assigned

  4. Only logged in users that have a specific capability assigned (to their role) on a specific blog

    current_user_can_for_blog($blog_id, $capability)
  • Ack. Right. Exactly right. Its always the template tags. Thanks for this!
    – saltcod
    Apr 3, 2012 at 19:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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