Image may be NSFW.
Clik here to view.Lot of contributors suffered from this problem. They can’t able to upload any kind of files through their dashboard. I also got lot of complaints regarding this. So just thought of sharing this.
If you also allow guest blogging on your WordPress blog, then you might have been inviting people to register as contributors. With the contributor role, the guest writers on your blog can leave their post to be reviewed by the admin (that’s you), who can edit or ask the writer for modifications needed and then publish the post. But the most annoying part of the contributor role on WordPress is it’s limitation of not allowing file or image uploads to the contributors.
So, how you are going to manage roles on your WordPress? Are you rushing to WordPress Plugin Directory or Google? Wait. I found this great hack while reading through at Cats Who Code (worth a bookmark) which comes in handy to allow file or image uploads to the contributors on your blog.
All you have to do is to open your functions.php file via ftp or from your WordPress theme editor and add the code anywhere (may it be in the start or after the end of any function) and just save the file. I am pretty much sure that this will work as it is working very fine and smoothly for me. To allow contributors to upload files, look below is the code which you will need to add in your functions.php and save the file.
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 hope this will help you a lot in making your guest authors take the full advantage of their contributor’s account.
The post How to Allow Contributors to Upload Files in WordPress! appeared first on WordPress Experts.