Posting content to permitted categories

Hi,

Is there a way using the Groups plugin and the Restrict Categories addon to enable all users of a certain group to be able to publish posts (publish_posts capability) to certain categories but only to edit posts (edit_posts capability) to other categories?

For example, lets say a user belongs to a group called Members. There is a Members Content post category and a Blog post category. I want to allow this user to publish a post to the Members Content category without needing approval, but if they want to post to the Blog category, it would be held for moderation.

Thanks

3 Responses to Posting content to permitted categories

  1. George February 18, 2020 at 5:57 pm #

    Hey Nat – you’re welcome.

    A user with a Contributor role can create posts but is not able to publish them. Please have a look on WP user roles and what are their rights on a site in this link below:
    https://wordpress.org/support/article/roles-and-capabilities/#summary-of-roles

    Kind regards,
    George

  2. Nat Miletic February 17, 2020 at 7:46 pm #

    Thank you.

    In my case, new users only have the subscriber role. We then sell them a “membership” using woocommerce which adds them to a “Member” group. I have granted the Member group rights to create posts using capabilities.

    We want these members to be able to submit posts automatically to certain categories but other posts would have to be moderated.

    In your example, someone with a Contributor role would still be able to create posts without selecting a category, is that correct? So they would automatically be posted on the website which is not what we want.

  3. George February 17, 2020 at 7:33 pm #

    Hi Nat,

    Many thanks for using our plugins on your site.

    In order for a user to be able to handle posts, the user must have at least the Contributor role, Groups plugin can only restrict or grant access to posts. So if for example a user has the Editor role and belongs to the group a post is restricted to, then this user will be able to edit and publish this post and any other post that is not restricted to a group the user doesn’t belong to.

    For example, user John who is an editor and belongs to the Blue group only, can edit and publish all posts apart from those restricted to another group. In your case though -and please correct me if I’m wrong- you need user John to be an editor in the Blue group and a Contributor to another group. If this is not an absolute requirement for your project then you can handle the situation by setting up an Editor user and several Contributor users per group.

    Kind regards,
    George

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account

Share