My site got hacked and I found on the end of each post and image description. Is there any way to remove it?

Thank you Gusti

  • Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer.
    – Community Bot
    Feb 28, 2022 at 17:38

1 Answer 1


For sure not only your Posts include Code. There will be also hacked php files. Cleaning the posts wont help until the secuity hole is fixed. After closing the secuity hole you could use Better Search an Replace for Replacing the Code.

  • Thank you for your respond. Is that mean my theme has security hole or the wordpress core files?
    – Gusti
    Feb 24, 2022 at 5:51
  • If WordPress is up to date, then it should be secure. No known vulnerabilities with the current release. Chances are it's your theme, one of the plugins you use, or if you're on a shared hosting platform, it may not even be your site but rather another site on the shared server. (Haven't seen it often, but have seen it happen.) Feb 27, 2022 at 5:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.