Just an FYI, your site has been cracked – not “hacked”. 🙂
If someone cracked into your site, assuming that this is your own site (not a wordpress.com site), you should first download a dump of all of the WP tables. To do this:
- Go to the PHPMyAdmin interface that your host has give you.
- Go to the DB you put WP in.
- Click “Export”.
- Choose the tables you want (or if you aren’t sure what tables WP is using, just select all of the tables). If you aren’t seeing an interface to choose which tables you want, choose the option that says “custom”.
- Click “Go” (or something similar), and you’ll have a backup of your DB in a file (which can be saved to your desktop).
Next, get all of your files. FTP into your site and transfer all of the WP files to your computer.
When you want to get back your themes, copy the theme’s dir from wp-content/themes/ to your new site’s wp-content/themes/.
If you have some pics that you’ve uploaded to your website, search your WP dir for the pics.
When you want to get back something else, look through the DB (hint: the one that ends in “posts” should be the most helpful, as it has both your blog posts and pages).