Recently, I made some contributors accounts for those who wanted to write a guest post for my blog and they were made successfully. Now, when they wrote a post, they complained to me that they could not upload the images into the post via their contributor WordPress account so as usual and definitely I had to make way and find a solution for this issue and finally I found out a solution which I am providing you all. Have fun!
This is a very irritating issue as far as post writing is concerned as the author always keep asking about how they can upload images and so on. The solution is very easy in fact. 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. 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. For more tips on WordPress, you can check my other articles here.


I don't have the guest posting facility on my blog, but this will help me in the future. I was not aware that this type of problems can happen (lack of experience on my part
).
nice hack for wordpress ,bookmarked and will use it in future.
I face problem when I have to guest post on other blogs or sometimes on my blog too. This tip is going to help me lot and others bloggers who allows guest post but face same problem.
i needed dis dude badly needed de same…
thanx
Its nice stuff for wordpress users .Thanks for sharing
This is brilliant, thank you!
Really nice tip, might be useful for me in group blogging.
My recent post 2011 Easton SRV5 Salvo Softball Bat Review