Diese Seite ist nur auf Englisch verfügbar. (Sie darf aber gerne auf Deutsch kommentiert werden.)

As WordPress Admin or Editor, you might have faced the situation that a comment needs to be moved, e.g. because somebody missed the right post for it. Or you want to remove a post, but preserve its comments. Now what would you do? You would need to open you database (phpMyAdmin or command line, anyone?) and edit around in a couple of places in order to move the comments and update the posts’ comment counts.

Download

Please consider coming back for a donation. You’ll support our efforts and receive a backlink.

Have problems unpacking archives? Try the latest 7zip.

Now this is obsolete, thanks to Zirona! ;-) Simply download the Move Comments plugin, install it, and go to Manage » Move Comments where you find the plugin’s management panel. There, you simple select one or more comments, then you select the target post and submit your query. After that, you can deactivate the plugin again.

Sure, this plugin is nothing special, but it might save you a bunch of time and nerves. Feedback is as always welcome. Enjoy!

43 Kommentare zu „Moving comments in WordPress“

  1. fruity am 16. January 2007 um 04:36 #

    I think there might be something wrong with the zipped file – the file in it seems corrupt. I can’t activate it because it doesn’t show up in Admin.

  2. Alex Günsche am 16. January 2007 um 12:05 #

    Could you please try to unpack it with 7zip?

  3. Aeriko am 19. January 2007 um 09:42 #

    I used the plug in and it is cool. I would translate in Italian too, but I don’t know if I can. Anyway I have a problem moving to a page the posts.
    The posts in the page don’t appear .
    Any idea about?

    Thanks

  4. Alex Günsche am 19. January 2007 um 13:18 #

    Hi Aeriko,

    Thank you very much for your offer to translate the plugin. Unfortunately, I didn’t intend to make this plugin multilingual. But of course, you may take the source code and distribute an italian or multilingual version under the GNU GPL.

    As for your your pages/posts, I don’t exactly understand what you mean. Could you please describe your problem a bit more detailed?

  5. Leigh am 13. February 2007 um 05:34 #

    Great plugin, very useful. Thank you :)

  6. lazydog am 19. February 2007 um 19:34 #

    Unzipped with WinRAR. This installs fine but when I go to Manage >> Move Comments it takes me to the home page of my blog. I’m not sure why. Any help would be appreciated. Thanks!

    Update: It’s working. I had two problems.

    1) Make sure that you get the correct folder name on your server. The ZIP file has nested folders; you want the one without the version number in your plugins directory.

    2) You may need to change the path to WordPress in the admin.php file. In my case, WP is located in a /wp/ directory, so the form action statement needed to include that: ‘/wp/wp-admin/edit.php?page=movecomments/admin.php”
    If the path is not correct, the movecomments.php containing the SQL update statements is not called.

  7. diego am 20. February 2007 um 10:04 #

    great plugin!
    I was looking for something like that since last year (http://blog.diego.lopezortiz.com/?p=100), and I tried to hack edits-comments section too add:
    a)get the post id (get_var(“SELECT ID FROM $wpdb->posts WHERE ID = $comment->comment_post_ID”); ?>)
    b)get a form to select de post destination (‘.$row["post_title"].”;} mysql_free_result($result) ?>)

    The idea was to change the post´s comments counters (-1 and +1 betwen posts), and the post id in the comments table…

    Unfornately, my solution doesn´t work :S…
    …so thanks a lot for your solution :D :D:D

    I thing it´s the kind of things that must be included in wp by default

  8. Alex Günsche am 21. February 2007 um 00:45 #

    lazydog, thank you for your hints; I will consider them in the next release.

  9. Aeriko am 7. March 2007 um 13:40 #

    Sorry Alex,
    for the delay.
    The problem I have is the following:
    I used your plug in to move a post from the main page to a new page and its work properly, but the post I moved have ALSO comments and the comments were not muved to the new page. So the question is could your plug in move both the post and its comments?

    Thank you

    P.s. for italian dont’ worry! :)

  10. Alex Günsche am 7. March 2007 um 19:33 #

    Aeriko, the plugin is only capable of moving comments from one post/page to another. It does this by identifying the posts/pages by their ID. Usually, it will help, but you might have to move the post/page first.

  11. Blui am 25. April 2007 um 22:08 #

    Komischerweise funktioniert das PlugIn bei mir nicht mehr.
    Es hört einfach irgendwann auf die Kommentare aufzulisten und kommt dabei nicht mal soweit die Beiträge anzuzeigen. Dabei hab ich weniger als 400 Kommentare im Blog.

    Liegt das am Plugin, an WordPress oder eher an meinem Hoster?

  12. FKI am 30. April 2007 um 22:16 #

    THis is crazy when you have 25,000 comments. It has to load them all up!

    Any way to go to the comments for that post only, then manually type in a post ID# where you want the changes to take place?

    Very hard to manage it this way….

  13. Aaron am 1. May 2007 um 14:41 #

    @FKI
    I did the following to fix it.
    Open: Admin.php
    Find:
    $zimc_query = "SELECT comment_ID, comment_post_ID, comment_content, comment_date, comment_author FROM {$wpdb->comments} WHERE comment_approved != 'spam' ORDER BY comment_date";
    Replace With:
    if($_REQUEST['fp']){ $fp = 'AND comment_post_ID = '.$_REQUEST['fp'];}
    Find:
    <input type="hidden" name="movecomments" value="yeah" />
    Add After:
    <input type="hidden" name="fp" value="'.$_REQUEST['fp'].'" />

    Once you do that just add &fp=SOMEPOSTID and you will only see those comments.

    It isn’t the most user friendly, but it is good enough for cleaning up posts certain posts every few weeks.

  14. FKI am 3. May 2007 um 20:27 #

    This will work with WP 2.0.6?

  15. milko am 24. May 2007 um 09:45 #

    Danke für dieses hilfreiche Plugin

  16. milko am 7. June 2007 um 09:00 #

    Hallo Alex – kann es sein, dass das move-comments Plugin Probleme bei Subscribe-To-Comments verursacht. Seit dem ich das Plugin in Benutzung und Kommentare verschoben habe, können sich User von der E-Mail Benachrichtigung nicht mehr abmelden. Nachdem ich das subscribe-to-comments plugin überprüft habe, ist ein Blog-Leser auf die Idee gekommen, dass es womöglich mit den verschobenen Kommentaren zusammenhängen könnte.

    Hast Du Erfahrung damit?

  17. Sean am 26. July 2007 um 20:53 #

    Fantastic plugin, saved me loads of time and worked first time straight out of the box. Thanks!

  18. Keith am 23. August 2007 um 23:11 #

    Thanks very much for the plugin I’ve been looking for something like this.

    I have one problem with it though: when moving the comments it only shows a list of posts, and not pages.

    Is it possible to move comments from a post to a page?

    Thanks again.

  19. Will am 25. September 2007 um 19:34 #

    I installed this and have the admin page under “Manage. When I select a comment to move and the target post to move it to, I get a 404 error?

    Thanks for any help!

    Here is the end of the url that returns the 404:

    .com/wp-admin/edit.php?page=movecomments/admin.php

    .

  20. Will am 1. October 2007 um 17:40 #

    I see now that the last time the author of this plugin was here was March 7th. Oh well. For those that have issues where the plugin does not work, I did find that it is not all that difficult to use PHPMyAdmin to move comments.

  21. Sparanoid am 2. October 2007 um 11:08 #

    i’ve a blog with 3000+ comments, it’s ridiculous to wait broswer to load the whole page.

  22. mp3like am 28. October 2007 um 23:37 #

    Very Very Very big thanks for plugin!

  23. Maltaannon am 4. December 2007 um 19:39 #

    Downloaded, Unzipped, Uploaded, Activated. Works like a dream. Thanks a lot. Just what I needed. Thanks

  24. MrAnderson am 29. December 2007 um 19:27 #

    Any plans for upgrading this awesome plugin?? It would be wise to add sepparatedly javascript filter options for comments and posts, when you have something like 200 posts and 3500 comments the display gets weird…

    Greetings

  25. Binh am 18. January 2008 um 15:16 #

    Just tested it and it worked. Thanks so much now I can move the comments to the right post.

    I don’t understand why sometimes people are just so ignorant and put comment in the wrong place. Anyway I’m thankful to them for commenting so I don’t like to delete it and say something upsetting.

    Keep up the good work.

    Cheers,
    Binh

  26. Binh am 18. January 2008 um 15:18 #

    Sorry for 2 comments. The tar.gz file is corrupted but the .zip file still working. Please fix that so people don’t get frustrated.

  27. Binh am 18. January 2008 um 15:48 #

    Sorry for this 3rd comment. The Move Comments plugin is fighting with my Absolute comment plugin. If it’s enabled it prevent me from using Absolute comment to quickly reply to comment from Admin Panel.

    Here is the message:

    Error (duplicate comment, or posting too quickly?). Aborted

    If I disable Move Comments plugin it works again. After testing properly it’s positive that they are having conflict (or war?). Hope you investigate this bug.

    Kind regards,
    Binh

  28. Alex Günsche am 18. January 2008 um 17:52 #

    Usually it should be sufficient to activate the plugin only for a short moving of a comment and then deactivate it again. Therefore I think this shouldn’t be a too big problem.

  29. logtar am 25. January 2008 um 18:08 #

    You are right, this would be a huge time saver :) going to give it a try.

  30. James am 26. January 2008 um 23:27 #

    Thanks heaps for this plugin. It works perfectly.

    Great work!

  31. Betsy Finn am 15. February 2008 um 15:31 #

    cool another great plugin! I had been looking for something like this for a while; glad I stumbled across your solution. I had been looking for an easy way to move 40+ comments from a post to a page — and this worked great.

    Only suggestion for improvement would be the ability to filter comments by post, or date, etc so that it would be “more convenient” to move the comment(s) in question.

  32. Global Fusion am 13. April 2008 um 12:53 #

    I just thought I’d say thank you for the plugin. Works well with WP 2.5.

  33. Ampersand am 21. April 2008 um 17:01 #

    I’d really like a plug-in like this. However, when I go to the “move comments” screen, it attempts to list all the comments I’ve ever gotten on my blog! Since there have been over 95,000 comments left on my blog over the years, that makes your plug-in completely impossible for me to use — the page will never finish loading.

    What’s needed is a default in which the plug-in lists RECENT comments to move, or some other sorting mechanism so it doesn’t try to load all the comments at once.

    Anyhow, thanks for making this plug-in anyway, and please let me know if you ever update it. :-)

  34. eylultoprak am 18. August 2008 um 12:49 #

    Thanks heaps for this plugin. It works perfectly.

    Great work!

  35. Laurens am 15. November 2008 um 22:21 #

    The plug-in doesn’t seem to be compatible with 2.6. I seem to have moved a comment from one page to an old revision of another page. Pity, since this could really be a useful tool; As other have already said, the fact that all your comments and pages or posts get listed makes it cumbersome to use on a large site.

  36. Eric am 21. November 2008 um 18:36 #

    Thanks for the plugin. This was exactly what I was looking for.

  37. Joaquin Windmuller am 29. January 2009 um 17:06 #

    There’s a problem with the plugin when you have installed wordpress in its own subdirectory (http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory) the url for the action ends pointing to the wrong address.

    I added the missing part with firebug and worked.

    (on a unrelated note: when you post a comment it says “Your comment waits for approval by a modorator.” should be moderator)

  38. Betsy am 7. May 2009 um 19:39 #

    Anyone using WP 2.6 or 2.7 — since the wordpress interface changed, it “appears” as though the manage interface can’t be found; but you can access it via the url below (don’t forget to add your domain + WP root directory):

    wp-admin/edit.php?page=movecomments/admin.php

  39. tboggi am 3. September 2009 um 14:21 #

    Hallo Alex,

    wenn ich die Seite aufrufen möchte, kommt immer die Meldung, dass mir die Rechte dazu fehlen.

    Selbstverständlich bin ich als Admin eingeloggt.

    Was nun ?

  40. sooran am 15. September 2009 um 11:35 #

    tancks.
    This Post Helped me
    Good Time

  41. ari am 12. October 2009 um 17:17 #

    the manage interface page is missing. i tried the url you mentioned Betsy, but I get a msg saying “You do not have sufficient permissions to access this page.”

    my problem, is i have many posts so trying to find one from the drop down is aheadache, especially since some are the same name.

  42. Recht-Frech am 29. October 2009 um 09:25 #

    Ich habe das Plugin installiert, finde aber im Adminbereich keinen neuen Eintrag zum verschieben.

    Wo finde ich den Eintrag “Move Comments”?

  43. Simone Semmel am 25. November 2009 um 01:37 #

    Hi at all,

    ich habe das selbe Problem wie ari (Comm. #41):
    nach der Installation fehlen mir als BlogAdmin die Rechte zur Anwendung.

    Betrifft in unserem Falle WP 2.8.6

    Kann jemand helfen?

    Gruß
    Simmy

Please support our OpenSource developments. Donate some bucks! Use the form in the upper right of this page, and get a backlink!

Artikel kommentieren

 (wird nicht veröffentlicht)


Kommentare können bis zu 30 Minuten nach dem Veröffentlichen bearbeitet werden.