Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    Use https://www.ads-software.com/plugins/user-role-editor/ to allow them to ‘edit_others’. Its a capability.

    Thread Starter alvarix

    (@alvarix)

    Thanks for the quick response!

    Thread Starter alvarix

    (@alvarix)

    It seems editors can’t access the plugin backend admin at all.
    Giving them the ability to edit_others_posts didn’t help.

    // allow editors edit_other_posts
    function add_theme_caps() {
        $role = get_role( 'editor' );
        $role->add_cap( 'edit_others_posts' );
    }
    add_action( 'admin_init', 'add_theme_caps');

    Do you have any suggestions (short of making them admins) to allow editors (the role) access to edit their own jobs and others’ jobs as well?

    thanks.

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    When you say they cannot access the backend, do you mean ANY of admin?

    Thread Starter alvarix

    (@alvarix)

    Editors cannot access the wp job manager backend pages at all.
    It doesn’t appear in the left sidebar.

    If I try the URL that I use as an Admin (https://tah.local/wp-admin/edit.php?post_type=job_listing) as an editor, I get this cute WordPress error:

    Cheatin’ uh?

    Does that answer your question? Im not sure if I understood it.

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    In user role editor there are several permissions related to jobs; use your browser search to see them all. e.g. edit_job_listing etc Assign them all to editor.

    Thread Starter alvarix

    (@alvarix)

    I added this code and now I can see Job Listings as an ‘editor’, but I still can’t edit them.
    I get this error when I click a listing: You are not allowed to edit this item.

    This is my code in functions:

    // allow editors edit_other_posts
    function add_theme_caps() {
        $role = get_role( 'editor' );
        $role->add_cap( 'edit_job_listing' );
        $role->add_cap( 'edit_job_listings' );
        $role->add_cap( 'edit_others_job_listing' );
    }
    add_action( 'admin_init', 'add_theme_caps');

    I searched the web for all the roles, but all I found were some support forum posts.
    I also searched the plugin files.
    Is there somewhere specific to look up rolls?

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    The plugin I recommend to you LISTS all available roles so you don’t need to look them up.

    Thread Starter alvarix

    (@alvarix)

    Got it. Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Would like to see other editor's job postings’ is closed to new replies.