WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Got an issue on a site where deleting a comment with replies (where threaded commenting is activated), leads to the child comments being orphaned, causing unexpected behaviour (such as the orphaned comments attaching themselves to the latest comment).

I haven't looked into this yet, but before I do, is this a known problem with threaded comments, or a theme specific problem?

I'm thinking of hooking into whatever the hook is for deleting comments to not actually delete the comment, but replace it with something like [deleted] - good idea, or not?

share|improve this question
I guess it's the best idea you could come up with. – kaiser Aug 1 '11 at 11:54

Had this problem on a site where commenter's would post comments to the wrong posts and comment threads, had to move thousands of comments from one post to more appropriate posts on the site.

I used this plugin http://wordpress.org/extend/plugins/move-wordpress-comments/ for fixing threading.

With the plugin you have the option of turning the child comments into parent comments or threading them under another comment. Can also move them to different posts.

Be careful with it though, as you've found if you break the threading the orphaned child comments don't play nice.

I've also used this plugin http://www.dountsis.com/projects/move-comments/ for moving comments around in bulk (the other plugin is one comment at a time, perfect for the odd comment/thread issue). If you have an entire thread for example you want to move to another post this plugin can speed the migration process. Like the above plugin easy to orphan child comments, so take your time planning the moves.


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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