Support » Plugin: Asgaros Forum » Import post/page comments possible?

  • Resolved yellofish


    So far I have no forum, but plenty of comments on pages and posts. It’s just hard to read.

    Is there a way to import them to the Aspargos forum?

    Or if there is no function for that – can I get them from the WP MySQL DB and make them guest posts in Aspargos anyway by directly importing them to the Aspargos MySQL DB?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Asgaros


    Hello @yellofish

    Currently there is no import-script available for this.

    WordPress comments are stored inside the wp_comments table. Basically it would be possible to move them to the wp_forum_posts table via a script but it requires a little bit of PHP and MySQL coding-skills. What you actually have to do is:

    – First create the forum in which the posts should be located
    – For each page/post which contains comments create a new topic with the page/post name inside the wp_forum_topics table
    – Insert the comments into the wp_forum_posts table and set the corresponing topic via the parent_id field

    Doesn’t sound too complicated.

    I like to add that I want to transfer all exiting comments into a Asgaros structure, after done I would delete the WP Post comments and disable the post comment ability – but add a link to an appropriate forum topic.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Import post/page comments possible?’ is closed to new replies.