Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Wordpress Importer Module


Go to End


6 Posts   4914 Views

Avatar
Phalkunz

Community Member, 69 Posts

21 July 2008 at 12:31pm

Hi all,
I've just finished tidying up the code and documentation for this module. Have a look at it and feel free to leave a feedback and suggestion. Cheers.

HOW IT WORKS:
- This module imports wordpress blog entries and comments stored in Wordpress export XML file
- You can get wordpress export xml in wordpress admin page (Dashboard > Manage > Export)
- Wordpress categories and tags are translated to SS Blog tags

REQUIREMENTS:
- Blog module (latest daily build)
- Enable allow_wysiwyg_editing in BlogEntry.php
- Wordpress export XML file on your local file system

INSTALLATION:
- svn co svn://svn.silverstripe.com/silverstripe/open/modules/wordpressimport/trunk wordpressimport

HOW TO USE:
- In CMS, select a BlogHolder page type and then go to Import tab.
- Select a Wordpress xml file
- Click 'Upload Wordpress XML file' button to upload (this may take a while depending on how many entries the xml file contains)

NOTES:
Make sure the selected blog holder is published before importing

Avatar
Axl Rose

Community Member, 7 Posts

2 October 2008 at 6:29am

Edited: 02/10/2008 6:33am

I could import the database from Wordpress and put it into SS. Anyway, Im having trouble with the html code in the posts. For example, it doens't show and image, just shows the tag <img src=... (situation marked in green in the image) and Im also getting a debug message at the top of te site. Here's the pic. Any idea?

Avatar
Axl Rose

Community Member, 7 Posts

2 October 2008 at 6:50am

Ok, here's the image. There's no UPLOAD FILES field when you EDIT the post...

Avatar
Phalkunz

Community Member, 69 Posts

2 October 2008 at 9:23am

It's not something to do with this module but blog module. By default, blog module uses BBCode to render content but the content created by wordpress is in the html code.

To get around this, you can either turn on your visual editor (as this will tell blog module to use html code instead) in blog module entry or replace the html tags (such as img tag) with BBcode tags. I recommend the first option.

Avatar
Axl Rose

Community Member, 7 Posts

2 October 2008 at 10:37am

Ok!Thanks! I'll do that.
If is not a module problem, may be it's a good idea to move this messages to another post, for not confusing the people.

Avatar
Ryan Hellyer

Community Member, 1 Post

11 November 2008 at 2:25pm

It may be easier/faster to open the XML file in a text editor and use search and replace to convert all of those <img src="" .... tags into bbCode.