WordPress.org

Ready to get started?Download WordPress

Forums

[ WP.3.0 RC2 ] Problem creating a custom role for a custom post type (4 posts)

  1. Razorblade
    Member
    Posted 4 years ago #

    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!

  2. Razorblade
    Member
    Posted 4 years ago #

    Nobody? :)

  3. joche2
    Member
    Posted 4 years ago #

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

  4. alanchrishughes
    Member
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic