• I am having a problem with the event contributor role. I can’t get it to allow upload of featured images.

    I’ve tried this code with a regular contributor role and it allows the contributor to upload images, but I can’t get it to work for the event contributor.

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

    I tried changing contributor to eventcontributor, but that doesn’t work. I see no option to upload the featured image.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Stephen Harris

    (@stephenharris)

    Is eventcontributor a role that you created?

    In Event Organiser > General > Settings, is ‘Feature image’ enabled for events? Lastly, you may want to check the screen options on the edit-event page, it maybe that the thumbnail metabox is hidden.

    I should add that the thumbnails and uploading images is all core WordPress functionality – the plug-in doesn’t do anything in this respect, so you should be able to allow contributors to upload media files.

    @jelly_bean, did you ever find a solution to this problem?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Event Contributor role can’t upload featured image’ is closed to new replies.