My advice is to read the Codex regarding user roles and capabilities.
Contributors cannot publish posts.
Edit: I am able to successfully add new users with the ‘contributor’ role, and select them from the dropdown as the author of a post, which is what I now realize you’re having issues with. So something is definitely wrong if this is not working for you. Disregard my earlier advice, because it is not relevant to your problem.
Related Posts:
- add_role() run only once?
- wp_update_user not updating
- REST API, get user role?
- Is WordPress’ is_user_logged_in() secure?
- Allow user to Publish, but not Edit or Delete
- Email notification for editors only
- Custom Post Type’s Capabilities map_meta_cap issues
- Adding multiple user roles dynamically
- How to prevent users with “edit_others_posts” capability from editing admin posts
- How do I allow anyone to edit a post — but not access dashboard
- Conditional Tags for Membership Levels when using Wishlist Member Plugin?
- Allow user to edit specific user with meta key using map_meta_cap
- How can I have different groups of editors only allowed to edit certain parent+subpages?
- How to let someone preview a draft?
- How can I allow user to select minimum privilege smartly
- How to restrict access to specific pages on the back-end?
- Remove wordpress author’s capability to moderate comments on their own posts
- Can you set a role as author?
- New user created as Participant rather than Contributor [closed]
- Contributor disable seeing others’ posts
- How can I disable the update notice for non-administrators?
- Listing child pages depending on user capability (role)
- Where are the WordPress capabilities stored?
- Display user meta by different user role
- Custom user roles for access to specific parts of the site
- How do I display user name, role and site name using HTML tags inside a dashboard notification?
- User Role Capabilities for WordPress Gutenberg Blocks
- Subscriber (with read permissions) cannot view Private posts
- Iframe disappears when author updates page
- How can I add a custom role capability to use in a custom plugin?
- How to create user specific pages (not user role!)?
- How to change a user’s role conditionally to expire after two weeks
- Add a button or radio box that update the user role
- Stop users of author role from editing already pending posts
- Restrict Access in Admin Panel
- Reset Roles (or undo role changes on theme change)
- Check role of Username then echo something if administrator [closed]
- Plugin creation – how to add user rights?
- Force modified contributor role to be re-approved on edit?
- User restricted only show posts assigned to current user
- Stop contributors from editing standard posts but allow them to edit a custom post type
- How to hide a HTML element based on user role
- Give Editor Access to Custom Theme Options
- Authorize users for specific pages and/or categories
- create new user role for reader
- Woocommerce Wcvendors – duplicate emails when Vendor approved
- Hide Users by user role in Worpress
- Change user role of a particular user at specific time
- How to trigger an error: “You are not allowed to edit this post.”
- allowing subscriber role to delete their own posts
- Make a single page in WordPress available only for Admin and Subscribers
- Let users edit their role from the frontend
- Restrict access to a post once it is tagged as a given status
- List of users with email and role
- Subscription list function
- When using a user role editor how to find out any plugins’ or themes’ role?
- Require Capability to View Woocommerce Product
- Is there a capability/User role plugin that lets you specify edit ‘posts’ not ‘custom posts’? [duplicate]
- users in their Role can only their Posts
- How to assign a role to a simple visitor?
- How can I check if a visitor can read a post?
- Assigning a capability to a user role (code check)
- How to query users to count all with a custom capability and limit it to a set of roles?
- Adding a role using Members and Formidable Forms [closed]
- Set role to a guest user, it’s possible?
- wp_update_user very slow
- On action, change user role
- User role and capablities only for 1 plugin
- Add a second role when registering programmatically
- WordPress hide any html element by css when user-role
- Create role that can edit some user details, but not the role
- What would cause wp_insert_user role to work sporadically?
- How can I add capability to multiple roles?
- After setting up a new Role, CPT and capabilities, the new role can’t see the featured image
- underscore not allowed in role slug?
- Custom Gutenberg Block and unfiltered_html capability
- Blank Screen Edit Page when using Editor Role
- Streamlining what roles and users see
- Can someone help me out? Why isn’t this working?
- dynamic home page according to role user
- Custom site role cannot access Appearance menu
- Set User Role based on age result from Facebook Log-In – WordPress
- Custom Role Allowing Things It Shouldn’t Be
- List users of specific role instead of removing them with specific role
- Change the user role based on login or theme switch
- Frontend view of normal Visitor
- Custom Role accessing the wp-option table
- used code below to allow Editor access to menus – but change permanent, how do I revert?
- Display based on specific user
- How can change 12000 user role into contributor by sql [duplicate]
- Is it possible to restrict a specific user to edit a specific custom post.
- Access to option page by role/capability
- Hide user fields based off capability
- Author capabilities: Deleting comments on their own published posts
- Set user role based on invitation code
- How to assign a custom gender to a user role?
- assign roles to users in custom drop down in signup form
- Hide block of HTML if the users role is a certain role
- How might I enable a user to view Draft pages from a different Author, without the ability to edit?
- Display users by role