Support » Plugin: User Role Editor » Can't assign posts to users who belong to a custom role

  • This is quite weird… I created few roles starting from a copy of the default Author role and such roles have the same capabilities of authors plus a couple of more things. When I create a post as admin and want to assign it to one of the users who belong to those roles they do not appear in the list. So I have to set the user back to Author, edit and update the post, then set it back to the proper custom role.
    Does anyone know why is this happening? Is it the way it is supposed to be?..’cause it seems like wp do not understand that these custom roles have all the necessary capabilities to publish posts.


Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Vladimir Garagulia


    In theory user levels were deprecated with WordPress 3.0. But checking post_author_meta_box() and consequently wp_dropdown_users() function I discovered that they are still in action, at least for Authors dropdown menu. This function selects authors by this criteria

    wp_usermeta.meta_key='wp_user_level' AND wp_usermeta.meta_value!=0

    They still exclude subscribers this way, I suppose.
    So try to turn on the “Show deprecated capabilities” option and check if ‘level_0’, ‘level_1’ and ‘level_2’ are turned on for your author copy role.
    You need to switch your user to the other role temporally, update profile, and change back again in order these levels changes would be written into the user’s meta data.

    Yes, that’s the first thing I did……with no change. I found a workaround though by checking off the role ‘Author’ in ‘Other Roles’.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can't assign posts to users who belong to a custom role’ is closed to new replies.