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.
- Create a new script page within Website Baker;
- Copy/paste the content of this file into the script page;
- Save the page;
- Open the website interface of the page;
- Copy/paste the content of the Generated XML to a text editor;
- Save the file;
- Logon to WordPress with the administrator;
- Navigate to the import section and select import from WordPress;
- 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.
Pingback:Tweets die vermelden Import Website Baker into WordPress « Ruben Woudsma -- Topsy.com
Yo this theme is really interesting. Keep it going teammate !
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
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.
Hi Ruben, thanks for answering. Is “script” module an additional plugin? Because on my site, I can only see “code”, there’s no “script”.
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!
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!
…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!
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?
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.
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.
Hello – did this work for you? I need to migrate a WebsiteBaker site to WordPress – and I am not a coder
Hey, this doesnt work for me. What do I have to change in the code? My page is just blank. Thanks
Pingback:Website CDA Huizen in een frisse en snelle jas