The good people at Sucuri Security created an easy way to fix your WordPress site if it has been hacked. Just upload this file, after you change the extention from .txt to .php. You can do this through your hosting companies dashboard, or via FTP.
Then you just call for the script via a browser like this http://www.yoursitename.com/wordpress-fix_php.php
It seems to fix every hacked website I’ve come across?
You then should reinstall WordPress to improve your chance’s at keeping hacker’s out. Here is an article on how to reinstall WordPress. This video is a quick way to reinstall WordPress, but it works about 80% of the time.
I use Sucuri Security for my site security. They are inexpensive and on the ball, if you are looking for security for your web site.
Here to Serve