Skip to:
Content
Pages
Categories
Search
Top
Bottom

Import from Question and Answer Forum Plugin

  • @alleycakes

    Participant

    I was previously using the Question and Answer Forum plugin, and have recently decided to switch to bbPress. Is there a way to convert/import all of the questions and answers that were created while using Q&A Forum so that they are available in my new bbPress forums?

Viewing 2 replies - 1 through 2 (of 2 total)
  • @netweb

    Keymaster

    Having a quick look you should be able to export the ‘questions’ via /wp-admin/export.php

    As the plugin uses ‘Custom Post Types’ you should be able to then edit the exported XML file and find do a search and replace:

    Find <wp:post_type>question</wp:post_type>

    Replace <wp:post_type>topic</wp:post_type>

    I had issues with the plugin on my site so I am not sure if it uses ‘question’ for the answers or uses ‘answers’ as a CPT for them, if it does use ‘answers’ then search and replace:

    Find <wp:post_type>answers</wp:post_type>

    Replace <wp:post_type>reply</wp:post_type>

    Once you have done that then import them back into WordPress and see how they look, no doubt there will be a few issues such as topics not associated with a forum and depending on how many of these you have editing them in bbPress topic/reply panels should help you fix up any issues, if you have thousands then doing some more tweaking in the XML would be your best bet.

    To get an idea of what you would need the best idea would be to export some bbPress forums, topics & replies and have a look at the XML and this should help you work out what values you need to use for search and replace.

    @alleycakes

    Participant

    Awesome! Thank you so much for your help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar