WordPress has a really solid comment system built right into its core. By default, it supports threaded replies. Under the hood, a comment becomes a reply to another comment through the comment_parent field in the wp_comments database table, which stores the comment_ID of its parent. If the value is 0, it sits as a top-level comment instead of a reply.
While looking through some of my older posts, I noticed the comment sections were a complete mess. Several replies weren’t linked to their parent comments anymore, which broke the conversation threads. It was honestly pretty frustrating to look at. I knew the technical fix was simply updating the comment_parent value with the right parent comment ID, but doing that manually in the database for dozens of comments wasn’t fun.
So, I decided to team up with Gemini Hydrogen to help build a plugin that fixes broken comment threads using simple drag-and-drop. Once you drag a comment onto its parent, the new relationship is automatically saved and updated in the database.
I named the plugin Deka Comment Thread Organizer. Here is a quick look at how it works:

I hope this plugin doesn’t just solve my own headache, but also helps other WordPress users who are dealing with messy comment threads.