When a WordPress post is trashed, all the comments are trashed as well. I would expect the "undo" button to restore both the post and the comments. However, all the comments seem to just disappear : they're not moved into the Dashboard->Comments->Trashed folder, and they are not restored with the original post.

Is there a way to get them back ?

Thank you in advance.

  • I can't replicate this on a vanilla install. – birgire Oct 20 '16 at 13:59
  • 1
    I can confirm that @birgire says - this does not happen on a fresh install of 4.6.1 with the twentysixteen theme active. No plugins. Suggestion: try reverting to a default theme to see if that resolves the issue. If not, it's time to play the 'find which plugin is causing this problem' game. – RichardTape Oct 25 '16 at 19:19

Once you restore the posts that are trashed you can try running the comment-fix.php script to reset the comments to appear and show the correct count. If it has been over thirty days in the trash the comments are gone for good, sorry.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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