Solution bbPress CSV Import | Import bbPress data from CSV file to bbPress forum

REGISTER OR LOGIN TO PARTICIPATE

Home Forums WordPress Help Forum bbPress Help Forum Solution bbPress CSV Import | Import bbPress data from CSV file to bbPress forum

This topic contains 0 replies, has 1 voice, and was last updated by  Navjot Singh Virk 2 months, 4 weeks ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #278

    Solution bbPress CSV Import | Import bbPress data from CSV file to bbPress forum

    Plugin: https://wordpress.org/plugins/wp-ultimate-csv-importer/

    Live Demo (try the plugin for yourself): http://demo.smackcoders.com/wordpress/wp-admin/admin.php?page=sm-uci-dashboard

    Video: https://www.youtube.com/watch?v=Uho22R0BCHQ

    Install the Plugin

    csv file had to be split into 3, one for the forum, one for topics and one for replies. Here is a copy of the 3 CSV files https://gist.github.com/ntwb/6532360

    Next jump into WP Admin and and open up the WP CSV Tool and select ‘Custom Post’ to import from and select your forum.csv file to upload and click import.

    Set the options and field mappings as per this:

    Import Data Configuration

    Select Post Type = forum
    Import with post status = publish
    post_author = post_author
    post_date = post_date
    post_content = post_content
    post_title = post_title
    And click import.

    Topics is up next and you will notice that it includes the field ‘post_parent’ so this is the forum ID that the topic will be imported into. As we do not know the forum ID you will need to open up the bbPress forums panel in wp-admin. Select the forum you want the topics to be imported and this will take you into the forum edit section, look at the URL in your browser and it should be similar to /wp-admin/post.php?post=348830&action=edit what we want here is the ‘348830’ as that will be the parent forum for each topic imported. Update your topic.csv file with this number as per my sample linked above.

    Back to the CSV importer to import your topics.csv

    Set the options and field mappings as per this:

    Import Data Configuration

    Select Post Type = topic
    Import with post status = publish
    post_author = post_author
    post_date = post_date
    post_content = post_content
    post_title = post_title
    post_parent = post_parent
    The replies section is basically the same as the topics section, you need to get the ID orf each topic ID for each reply and update your reply.csv file for each entry.

    Lastly run each of the ‘Recalculate’ and ‘Count’ bbPress ‘Repair Tools’ from wp-admin-> Tools- Forums -> Repair Forums (more info here https://codex.bbpress.org/repair-forums/)

    And I think that’s it, there is a bit of juggling your data around, give it a bash and let me know how it works out for you and here’s the result

     

    Tutorial: https://bbpress.org/forums/topic/import-bb-data-from-csv-file-to-bbpress-forum/

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.