For one of the websites I am maintaining I would like to import the content into a new website running WordPress 3.0 since it is supporting post_types. As there is currently no automatic way (with WordPress Import) to import the content from Website Baker I wrote my own queries and XML formatting to match the WordPress XML import/export structure.

Down below you will find the steps and information what has been done to export and import the Website Baker based website into WordPress.

  1. Create a new script page within Website Baker;
  2. Copy/paste the content of this file into the script page;
  3. Save the page;
  4. Open the website interface of the page;
  5. Copy/paste the content of the Generated XML to a text editor;
  6. Save the file;
  7. Logon to WordPress with the administrator;
  8. Navigate to the import section and select import from WordPress;
  9. Select the earlier saved file and start importing.

Between step 6 and 7 it is also possible to perform some additional steps. For the website I wanted to export/import I needed to do some extra adjustments in the generated file, like: Microsoft Characters conversion, some HTML conversion, etc. These additional steps have been executed in a text editor (e.g. UltraEdit). If you have custom post types or news sections you need to update the attached script and change the queries and add additional loops.

When you are following the above steps you should be able to import most of the Website Baker content into WordPress. I have tested the import against a beta version of WordPress 3.0 and this was working smoothly.

Download the file: websitebaker_export_script

If you have questions regarding the import script just leave a comment on this post and I will try to help you.

Import Website Baker into WordPress
Getagd op:                    

11 gedachten over “Import Website Baker into WordPress

  • Pingback: Tweets die vermelden Import Website Baker into WordPress « Ruben Woudsma -- Topsy.com

  • 30 april 2011 om 07:52
    Permalink

    Yo this theme is really interesting. Keep it going teammate !

    Beantwoorden
  • 8 juni 2011 om 12:04
    Permalink

    Hi, thanks for writing this post but what do mean by “Create a new script page within Website Baker”? How to create a new script?

    Thanks for your help.

    Nic

    Beantwoorden
    • 8 juni 2011 om 16:23
      Permalink

      Hi Nic, thank you for your message. What you need to do is create a page and put a ‘script’ module on that specific page. Within the textarea you then can put the code and you should be able to generate the page (this can take a while).

      After the page has been generated you can modify the output with e.g. UltraEdit.

      Beantwoorden
      • 8 juni 2011 om 19:15
        Permalink

        Hi Ruben, thanks for answering. Is “script” module an additional plugin? Because on my site, I can only see “code”, there’s no “script”.

        Beantwoorden
  • 14 juni 2011 om 09:40
    Permalink

    Hi Ruben, sorry to bug you but I didn’t manage to get it running as I can’t see the “script” module. Possible for you to help by posting a websitebaker_export_script.php file here, so that we can just FTP it to the root directory and get the data generated? Thanks!

    Beantwoorden
  • 9 mei 2012 om 23:14
    Permalink

    Just wanted to say you’ve saved me quite a bit of time converting a WB site to WordPress – cheers!

    Some things though (some of this might be due to the later versions of WB and WP I’m sure):

    1. To clarify the above question: when Website Baker asks you what type of page to create, choose ‘Code’ (or add a ‘Code’ section – instead of WYSIWYG – to an existing page). Then you will get the XML generated when you visit the page.

    2. The Website Baker script misses out the ? in the xml tag at the beginning – should be:

    (these may be generated but are removed automatically)

    3. You will get a WXR error without adding this line after the … tag:
    1.1

    This was done with WordPress 3.3.2 and Website Baker 2.8.2

    Hope this helps people, thanks again!

    Beantwoorden
  • 9 mei 2012 om 23:24
    Permalink

    …of course the code was stripped out… Let’s see if HTML encoding works:

    2. The Website Baker script misses out the ? in the xml tag at the beginning – should be:
    <?xml version="1.0" encoding="UTF-8"?>
    (these may be generated but are removed automatically)

    3. You will get a WXR error without adding this line after the <channel><language>…</language> tag:
    <wp:wxr_version>1.1</wp:wxr_version>

    This was done with WordPress 3.3.2 and Website Baker 2.8.2

    Thanks again!

    Beantwoorden
  • 2 februari 2013 om 11:49
    Permalink

    Hi,

    the script doesn’t work for me. I copied the code, added a code-section to an existing page and added the copied code there. When I am visiting the created page in Safari i get a blank page. In Chrome I get a Error 500. What am i doing wrong?

    Beantwoorden
    • 8 februari 2013 om 23:42
      Permalink

      I think you should investigate the script. As mentioned above it has been some while ago since I wrote this script. You can best examine it yourself. Does the 500 error also gives some additional information so troubleshooting would be a bit easier.

      Beantwoorden
  • 29 april 2018 om 20:48
    Permalink

    Very much appreciated! The script seemed to work about 90%. All of the posts imported, however it was missing about 10% of the pages. Still saved hours and hours of work! Thank you.

    Beantwoorden

Geef een reactie

Het e-mailadres wordt niet gepubliceerd. Vereiste velden zijn gemarkeerd met *