WordPress.org

Ready to get started?Download WordPress

Forums

Contributor Publishing Limits (4 posts)

  1. bunchweb
    Member
    Posted 2 years ago #

    The native WordPress contributor role seems to be partially working for me but there is one hitch.

    This is how it goes:

    1. Admin creates Contributor user
    2. Contributor logs into their dashboard
    3. Contributor creates their post which is automatically submitted for review
    4. Admin logs into the dashboard and publishes the pending post.

    So far so good but now this is where I get into the hitch.

    I want to make sure that EVERY TIME a contributor makes an update to their post it always has to be "submitted for review".

    However it seems once I deem a post "published" the contributor can login and make updates and those will be automatically published without my having to change the status.

    Do you know of any workaround? I have looked around on forums and it seems to be a common misinterpretation of the scope of the contributor role.

  2. Pioneer Valley Web Design
    Member
    Posted 2 years ago #

    I actually just did a test and in fact a contributor cannot modify a post once published by an admin (by default)...Do you have other users with roles such as Editor? Had you at some point installed a role plugin?

  3. bunchweb
    Member
    Posted 2 years ago #

    Two things I left out:

    I am actually working with a custom post type I set up in the them functions file.

    I am using a plugin called roles to add some extra functionality to the contributor role.

    http://wordpress.org/extend/plugins/members/

    However I specifically have left the ability to publish out the role options for contributor.

    Am I missing some argument parameter from my Custom Post Types?

    /* Custom Post Type */

    add_action('init', 'create_physician_profiles');
    function create_physician_profiles()
    {
    $labels = array(
    'name' => __( 'Physician Profiles' ),
    'singular_name' => __( 'Physician Profile' ),
    'add_new' => __( 'Add New' ),
    'add_new_item' => __( 'Add New Physician Profile' ),
    'edit' => __( 'Edit' ),
    'edit_item' => __( 'Edit Physician Profile' ),
    'new_item' => __( 'New Physician Profile' ),
    'view' => __( 'View Physician Profile' ),
    'view_item' => __( 'View Physician Profile' ),
    'search_items' => __( 'Search Physician Profiles' ),
    'not_found' => __( 'No Physician Profiles found' ),
    'not_found_in_trash' => __( 'No Physician Profiles found in Trash' ),
    'parent' => __( 'Parent Physician Profile' )
    );

    register_post_type(
    'physician_profile',
    array(
    'labels' => $labels,
    'public' => true,
    'has_archive' => true,
    'show_ui' => true,
    'capability_type' => 'post',
    'hierarchical' => false,
    'rewrite' => array("slug" => "physicians"),
    'query_var' => true,
    'supports' => array('title', 'editor', 'thumbnail', 'author')
    )
    );
    flush_rewrite_rules( false );
    }

  4. bunchweb
    Member
    Posted 2 years ago #

    I think I figured it out.

    I was using to Roles plugin and had set the Contributor with the permission to edit published posts. I assumed this option would automatically make any revisions into a pending status. If I would want to maintain a native Admin to Contributor control my workflow would have to involve the contributor contacting me, then I would have to manually set the post back to a pending or draft status. Then they Contributor could make revisions and I can review and publish them.

    I assumed that even if a post was published and contributor revisions would be submitted for review. However the native control just won't allow the contribor to edit the post once it's published.

    I started using the Revisionary plugin which kind of achieves the workflow I am looking for. But my custom post types rely heavlity on Custom Fields and Revisionary doesn't support that. In order to workaround that I can view the new and old post side by side to look for changes.

    I think maybe a good revision for future WordPresses would be to fine tune this Contributor role so that the dialog between the Admin can have some kind of continual pending update status to allow future content updates.

Topic Closed

This topic has been closed to new replies.

About this Topic