• niel

    (@nielfernandez)


    Hello Good day WordPress World!, I need help.

    I have a different role in my WordPress projects and each role has many users and each user can create post.

    My problem is each role should have their own selected assigned category when they create a new post or add a new post, and they should not able to create or add new category only the admin should be able to create or add a category

    ex.
    Post title
    Content
    —–
    Category (assigned) // role b
    – New
    – Expert
    // add button should not display from other roles
    // and they should not see other categories as well that assigned for other roles
    ….
    Category (admin) // role a
    – New
    – Expert
    + add category

    // For now what I did is display none with CSS but when the users use older browsers like OPERA or IE it will show up, CSS { display: none; } will not work.
    .
    .
    Thanks for your help.

    • This topic was modified 4 years, 7 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter niel

    (@nielfernandez)

    Hello, Sir. @prashantvatsh Thank you very much!
    You solved my problem without extra codings I can’t believe that there’s a plugin that I can use for that.

    Thank you very much! Have a great day Stay home keep safe…

    Glad to help you. Take care ??

    Thread Starter niel

    (@nielfernandez)

    Hello Sir @prashantvatsh Good day, I need help again with the same concern…

    Did you remember I had a problem hiding my category when a user creates a post? with plugins cat restrict solved they can’t add category and that is perfect, but how about hiding specific category using WordPress PHP function or any plugins too because in CSS display none not all browser work especially on mobile the user should able to select the category aside from the “Incomplete” and “Completed”.

    Here’s my configuration using plugins restrict the category in my back end
    ..
    link: https://ibb.co/RHMBvdB

    Expectedly is the “Incomplete” and “Completed” only show when the user creates post but still the category display all, exactly the user can’t add a category that’s perfect.

    Here is the image for my post user dashboard that all categories should not display aside to my “Incomplete” and “Completed” category.
    ..
    link: https://ibb.co/rf6Qz0m

    Thread Starter niel

    (@nielfernandez)

    Currently, I am using the latest version of WordPress 5.5
    Plugins version: Version 2.6.4 | By Matthew Muro (Restrict Categories)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Create Post and Display Category By User Role’ is closed to new replies.