• Resolved Tim

    (@thegreentimtam)


    What’s the best way to do this?

    I’ve tried giving them permissions to upload_files and edit_files using the Members plugin, but that only allows them to see files they have uploaded (not files others have uploaded – not the biggest deal), and, most importantly, clicking “Insert Into Post” doesn’t do anything.

    Is there a different way of doing this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Tim

    (@thegreentimtam)

    Also tried the following code to no avail:

    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');
    }
    Thread Starter Tim

    (@thegreentimtam)

    Changed to Twenty Twelve and had no problems. It’s a problem with my theme. Let you know what. ??

    Thread Starter Tim

    (@thegreentimtam)

    I found the culprit – a piece of code in my functions.php stopping Contributors from being able to edit their profile. I’ve since made it into a plugin to make it a bit easier to manage.

    https://pastebin.com/fyWVGuWA

    If anyone can see what the problem is, let me know :).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Allowing Contributors to Upload and Insert Files to Their Posts’ is closed to new replies.