Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Steve Taylor

    (@gyrus)

    First thing, as usual, deactivate all plugins apart from Developer’s Custom Fields. If the problem isn’t there, reactivate plugins one-by-one – there may be an issue with another plugin.

    If the problem still happens with only DCF activated, check your call to slt_cf_register_box() (http://sltaylor.co.uk/wordpress/developers-custom-fields-docs/#functions-boxes-fields). Each array in the fields parameter should have a capabilities parameter, which will be an array of capabilities (http://codex.wordpress.org/Roles_and_Capabilities#Capability_vs._Role_Table). Any user with at least one of these capabilities should be able to edit the field. So for a contributor to be able to edit the field, the array should contain something like edit_posts.

    Thread Starter Vladimir Vasilenko

    (@jeltoesolnce)

    Thank you, I did that you say, and that result: a Contributon see most of the fields but can’t upload iles.

    I wrote this:

    // Allow contributors upload files
    if ( current_user_can(‘contributor’) && !current_user_can(‘upload_files’) )
    add_action(‘admin_init’, ‘allow_contributor_uploads’);
    function allow_contributor_uploads() {
    $contributor = get_role(‘contributor’);
    $contributor->add_cap(‘upload_files’);
    }

    and the Contributor has upload files, but he can see all media files of other users, and he can upload those himself from media library.

    I think that I must disable Media Library from Dashboard ( this I can doing ), but how can I disable section of Media Library from window to uploading files? (Flash or standart…)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘A Contributor is not see the custom fields.’ is closed to new replies.