Support » Fixing WordPress » Assign post to custom user role

  • I created custom user role for my project, and want to admin assign post for some user with custom user role, but in wp-admin when I go to create new post, I can’t see users with custom role in drop down for author of post.

    Anybody have idea how to append my users there?

Viewing 2 replies - 1 through 2 (of 2 total)
  • So, how did you create your new user role? Did you do something like this:

    $result = add_role(
        'basic_contributor',
        __( 'Basic Contributor' ),
        array(
            'read'         => true,  // true allows this capability
            'edit_posts'   => true,
            'delete_posts' => false, // Use false to explicitly deny
        )
    );
    if ( null !== $result ) {
        echo 'Yay! New role created!';
    }
    else {
        echo 'Oh... the basic_contributor role already exists.';
    }

    If so, you’ll want to be sure that they have the proper permissions to edit and maybe even publish posts.

    Thread Starter CheeVT

    (@cheevt)

    Yes, I created on that way. I set true for publish post capability, but can’t see my custom role users in wp admin.

    My wp-admin author choice
    http://dodaj.rs/photos/20160730146986846287729.jpg

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Assign post to custom user role’ is closed to new replies.