• How to batch move comments to post content?
    I want to combine posts with comments.?
    For example there is post with 50 comments. I want to move all this comments at the end of post content. All 50 comments become part of the post. As a result we have post with 0 comments.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi @absurdo,

    That happens sometimes when there is an extra index.php file in your theme folder, with // silence is golden as the content. Removing that sometimes fixes the problem.

    If it’s not the case, I’d recommend you adding this to wp-config.php:

    define(‘WP_DEBUG’, true);

    It works great to display an on-page error message. You have to turn from ‘true’ to ‘false’ as soon as you’ve noted the error, because visitors will see it too.

    With the debug more on, you’ll be able to see the PHP errors that are breaking your feed.

    Hope that helps, let us know if you finally solve it!

    Thread Starter absurdo

    (@absurdo)

    I have no errors. Do you read my question? English is not my native language. Maybe my question is unclear.

    I know there are no errors, that’s why I’ve suggested you to activate the DEBUG mode of WP, to be able to see the PHP errors that are not shown normally.

    Thread Starter absurdo

    (@absurdo)

    You get me wrong.

    I plan to migrate from WP to static site like jekyll/hugo/hexo, but there are difficulties with exporting-importing comments.

    Hi @absurdo,

    I apologize, you’re right, by mistake I answered you what I wanted to reply to another user, sorry for the confusion.

    About exporting all your comments, it’s weird that it appears with 0 comments.

    Are you using the WP tool for exporting content in:

    Dashboard > Tools > Export > All Content (This will contain all of your posts, pages, comments, custom fields, terms, navigation menus, and custom posts.)

    If it’s the case, I recommend you to click there and to check the file generated to see if there are comments there.

    If there are comments, then you’ll know that the issue is related to the import process.

    If there are no comments, maybe the problem is related with the server’s config option in php.ini: “max execution time” or “time out”, that you’d like to increase in case that time is too low and because of that, WordPress is not exporting all the content, so you could be getting a not complete XML file without the comments.

    Does this make sense? Let us know!

    You can read here an article about how to Avoid Timeout When Exporting Large WordPress Sites: https://scottnelle.com/548/avoiding-timeout-when-exporting-large-wordpress-sites/

    Hope this helps! ??

    Thread Starter absurdo

    (@absurdo)

    Le’s forget about exporting.
    My question was:
    How to batch move comments to post content?
    I want to combine posts with comments.?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘move comments to post content’ is closed to new replies.