fixed 404 errors when wordpress is installed into subdir

replaced site_url() functions to home_url() so the subdir is not added to the url resulting in 404 errors