WordPress.org

Support

Support » Alpha/Beta » [ WP.3.0 RC2 ] Problem creating a custom role for a custom post type

[ WP.3.0 RC2 ] Problem creating a custom role for a custom post type

  • Razorblade
    Member

    @razorblade

    Hi all,
    I’m stuck in a problem, and this is it:

    – I’ve created a custom post type, ‘aziende’, with the capability_type ‘azienda’ .

    – I’ve also created a new user role called ‘Azienda’, and I want it to work exactly like default role ‘Author’ works for default type ‘post’ ( ‘Somebody who can publish and manage their own posts’ )

    Using the nice ‘Members’ plugin written by Justin Tadlock to manage capabilities, I’ve added the following capabilities

    edit_aziendas
    delete_aziendas
    delete_published_aziendas
    edit_published_aziendas
    publish_aziendas

    Then I checked the following capabilities for ‘Aziende’ role

    edit_aziendas
    delete_aziendas
    delete_published_aziendas
    edit_published_aziendas
    publish_aziendas
    upload_files
    read

    That are the same capabilities that author role has for post type.

    Now the problem: using an ‘Azienda’ role user, I am not allowed to edit and publish azienda post type, note that I can see the ‘publish’ button in the ‘add new azienda’ form.

    Does anybody have a clue?

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Razorblade
    Member

    @razorblade

    Nobody? 🙂

    Did you ever figured this out? I’m in exactly the same position now. Hard to find any documentation too.

    alanchrishughes
    Member

    @alanchrishughes

    I discovered if you check the edit_posts option the custom post types appear, but then the custom post types appear also just by selecting edit_posts even if you don’t have the edit_posttype selected.

    My guess is this plugin just wasn’t designed to work with custom post types, which sucks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[ WP.3.0 RC2 ] Problem creating a custom role for a custom post type’ is closed to new replies.