Look at all of the ‘related’ links to the right of your question for help with a hacked site.
I would reinstall everything (WP, themes, plugins), check htaccess files (in all folders, not just the site root folder), change all site access passwords (ftp, host, email), check your local computer, look for unexpected files (in all folders, sort by date to help find anomalies).
If this is above your skillset, professional help may be required.
Added
For my own reference, I created a post about the things I do to fix a hacked site: http://securitydawg.com/recovering-from-a-hacked-wordpress-site/ .But the googles (and a search here) will give you much guidance on how to recover.
Related Posts:
- What’s the effect if this malware if infected your WP?
- Malware on site [closed]
- How to find the backdoor of the hack
- My wordpress site was hacked – is my htaccess file compromised?
- My WordPress Blog sends malicious traffic to other sites [closed]
- Hacked website redirect, only on desktop, help with restoring it [closed]
- Hacked WordPress website, as notified by Google Search Console, what to do? [closed]
- How was my WP site hacked [closed]
- If a WP install is hacked, can it spread to other domains on a server?
- Find and Replace text in the entire table using a MySQL query
- What is this code in my theme’s footer.php causing chmod permission warnings? [closed]
- Is it a good idea to rename the “index.php” in “wp-admin” folder to avoid being hacked?
- How to fight this wp-info.php exploit? [closed]
- Prevent Hacking of WordPress Site [closed]
- Suspicious URLs being loaded after hack and restore
- Server hacked: correct contents of wp-uploads directory? [closed]
- Site hacked with malware [closed]
- Copy wordpress website pages and content
- How do I know if my WP Theme is using infamous TimThumb?
- Spam pages hack? [closed]
- Check for malicious code?
- Why would a hacker add this code to each post, and how to do mass cleanup?
- Is the current spate of hacks related to the recent security fix?
- I have removed the malware from our website however, when I tried again to search the word from Google it is still there [closed]
- Have I been hacked? Mysterious code at the top of theme files [closed]
- Strange codes in my wordpress site and my website is running too slow [closed]
- Spam Content Serving from old cached version of site?
- How to solve wordpress redirection (no malware was found)?
- how can i find malware code and remove from wordpress site to stop it redirecting to hackers click view pages
- Help determining if the following are legitimate files
- My blog was hacked? WP posting random posts
- Have I been hacked – getting new site setup email for 8 localhost wordpress sites
- Site Hacked – WordPress Divi Site – Cannot find where to fix the issue? [closed]
- malware in wordpress installer on dreamhost. [closed]
- Where I can find a list of WordPress security risks?
- looking for indoxploit hack solution [closed]
- Why functions.php file automatically empty?
- Bruteforce attack from 127.0.0.1?
- WordPress installer attack
- Why wordpress is hitting another url
- Where do hackers usually run their hacking script? [closed]
- Malicious Code in Index.php WordPress [closed]
- WP Site Hacked, Serp Google Spam [closed]
- Redirected You too Many Times and Homepage Not Loading
- WordPress Redirect Hack
- Strings of malicious code to look for after a hack
- Hacked/cloaked sitemap [closed]
- In the shell, what does ” 2>&1 ” mean?
- The page was not displayed because the request entity is too large on IIS
- How to use $_SERVER[‘HTTP_REFERER’] correctly in php?
- window.location.replace() not working to redirect browser
- javascript window.location in new tab
- How to check if is in cart page? [closed]
- Paged Single Post doesn’t redirect to the main url after Removing Pagination
- Redirect Tag to Post with the same name
- Random Alphanumeric Key URLs
- How To Only Allow Users To View Their Own Buddypress Profiles? [closed]
- htaccess redirect dynamic posts
- Redirect all pages to homepage but still allow dashboard
- Why can’t I access files / directories outside of wordpress
- Create/Edit posts and auto-redirect back to listing page
- 404 regular-expression advice needed
- How to redirect ‘file url’ to ‘post url’ i.e. in attachment.php
- Changing siteurl and homeurl – internal links redirect to home page?
- How to redirect a URL with parameters?
- redirect Login problems
- 301 redirection editing .htaccess doesn’t work
- 301-redirect directives for blogger to wordpress migration
- Some admin pages redirecting to front page on save
- How to redirect a link to a new link?
- 404 redirecting to home [closed]
- How do I make 301 redirection from `/%post_id%/` to `/%postname%/`?
- How can I disable author pages without 301 redirects?
- When changing pages to posts, how do you set up 301 redirects for the page URLs?
- Automatically redirect a page to a category that share the same slug
- Redirect specific URL before other redirects take place in .htaccess?
- Redirect Main Home Page url to category URL without plugin
- Force 404 redirect to home?
- WordPress 4.3 broke meta redirect (with url params plugin)
- Any known bugs that could cause disappearance of the wp_users table?
- Unable to properly login
- Is there a simple way to set wordpress site files back to out of the box?
- How to redirect non logged in mobile users to page on same site?
- Blog post is redirecting to home page
- Trying to re-direct users to specific page based on an ACF variable
- Redirect error after updating WordPress to 5.4.2
- 301 Redirect Loop www to non-www – Nginx + Apache2
- how to redirect 404 to attachment.php?
- Why is my site still showing insecure icon even if I have SSL certificate?
- My website frequently redirect to a different advertisement URL
- WordPress: Redirect Main Site to Subsite in Multisite Where user is NOT logged in
- Disable “similar permalink” redirect [duplicate]
- Configure WordPress to listen on a port other than 80
- Avoid executing a function (redirect) if I’m in the admin area
- Do I need to keep the original page when 301 redirecting to a new one?
- Need to change contact email depending where user is from
- Multisite redirect loop for a single www domain
- Rewrite Rule working different than expected
- 404 posts error after 301 redirection of changed category / tag base
- how to make wordpress remember my choice