• Hi.
    I am running a wordpress blog. I have certain types of users for uploading photos, videos, text news and feature news. I have different users for each job. The problem is, when they post content, they sometimes mistakenly upload to the wrong category. My requirement is, that, if a photouploading account is logged in, He/She should see only the categories needed. Similarly, if a video uploader uploads content, he/she should see their own categories and no other categories shall appear when posting content.

    I have uploaded a plugin named “Restrict Categories”. The problem with this plugin is that it works fine when clicked on categories, but when a user tries to post something, all categories are visible there.

    Is there any plugin already in the wordpress blog? If not, can someone guide please?
    Thanks.

    PS. I am already using “User Roles” for for role management but it does not help..

    Thanks..

    • This topic was modified 4 years, 7 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    I’m unaware of such a plugin. A custom coded solution is possible. You can alter the query used to list categories to exclude certain categories when the current user has or lacks a certain capability. The arguments to the term query can be altered through the ‘pre_get_terms’ action. Queries altered here will affect any term query, so measures need to be taken to only alter the query when editing posts. This might be possible by examining the arguments already established, or by adding the hook through a more specific, earlier hook.

    The filter hook ‘wp_terms_checklist_args’ might work for this. You’ll want to use this filter to alter what terms are included in the “popular” tab anyway. Altering this list does not prevent a knowledgeable user from setting terms anyway if they really wanted to. You’re only altering what is shown, not enforcing what is submitted. This is usually acceptable in most cases.

Viewing 1 replies (of 1 total)
  • The topic ‘Specific Categories to specific users in admin paenl’ is closed to new replies.