eZ Community » Forums » General » Import from Wordpress
expandshrink

Import from Wordpress

Import from Wordpress

Friday 16 May 2014 1:56:38 pm - 4 replies

Hi!

We need to import articles from Wordpress to EZ. 

I found this script:

https://github.com/brookinsconsulting/wordpressimport/blob/master/bin/php/ezwordpressmigration.php

but it has not been changed in the last 6 years.

 

Does anyone know about an extension or script that is possible to use or do we have to write our own?

We just made an extension to import from .json and .csv -files, but I hoped that since WP is pretty popular it was something that already existed (?).

Thanks!

Sunday 18 May 2014 4:14:23 am

One approach you may want to consider is to use the WordPress XMLRPC API: http://codex.wordpress.org/XML-RPC_WordPress_API

An easy library to work with it is: http://scripts.incutio.com/xmlrpc/

Some code samples: http://www.fromzerotoseo.com/wordpress-xml-rpc-intro/

This will allow you to create an XML file that you can then use with Mugo's data_import extension: https://github.com/mugoweb/data_import

There are some good examples here: https://github.com/mugoweb/data_import/tree/master/dataSource/examples

Sunday 18 May 2014 3:27:19 pm

Ah, the oldies-but-goldies xmlrpc libraries, bring back memories...

Another alternative to query xmlrpc servers from ezpublish is the ggwebservices extension: http://projects.ez.no/ggwebservices/

It comes with a few examples, but not to query a wordpress api (https://github.com/gggeek/ggwebservices/tree/master/doc/samples). If anyone wants to contribute one, I am a taker

Monday 19 May 2014 6:57:28 am

Hello Jeanette,

I'm pleased you found the wordpressimport script!

Have you tested it? Be certain to backup your db before trying it.

Is there a feature missing you need?

Wordpress content db is fairly consistent so I think the script should still work.

Let me know your thoughts!

Cheers,
Heath

Modified on Monday 19 May 2014 7:12:57 am by // Heath

Monday 19 May 2014 9:56:26 am

Thanks for your feedback and suggestions guys! 

I hoped for a solutions as easy as importing TO wordpress, but it seems we have to do some job here blunk.gif Emoticon 

//Heath: I have not tested it and I have not looked in to it very much yet. I'll let you know if we decide to use it.

I think maby we will modify the code we used for the other projects. That means, exporting the post from WP admin and then modify the script we used on the other project to read the WP xml file and create ez objects. 

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from