Wordpress import

329 views
Skip to first unread message

Martin Löhle

unread,
May 6, 2015, 3:08:11 AM5/6/15
to wag...@googlegroups.com
Hi, 

did anyone work on a import from Wordpress to Wagtail yet? Mezzanine has a pretty good approach for that. I have got a project where I need to import lots ob posts from a Wordpress site. I wonder if already something exists or if I have to work on it myself ;)

Martin

David Moore

unread,
May 7, 2015, 3:51:13 AM5/7/15
to wag...@googlegroups.com
Hi Martin,
   
I am working on importing posts from an old WordPress blog too.  I have not got it finished yet, but I am using the wxr-parser from Eliot Berriot and it seems to be working well for me so far..


Regards, David.


--
You received this message because you are subscribed to the Google Groups "Wagtail support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wagtail+u...@googlegroups.com.
To post to this group, send email to wag...@googlegroups.com.
Visit this group at http://groups.google.com/group/wagtail.
To view this discussion on the web, visit https://groups.google.com/d/msgid/wagtail/8a491b8b-f670-4780-b3d6-913802918f4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Martin Löhle

unread,
May 7, 2015, 9:55:48 AM5/7/15
to wag...@googlegroups.com
Hi David,

sounds pretty good. Thanks!

What I saw he doesn't handle images, right? Do you have a plan how to handle that yet? Or don't you need that?

Martin

David Moore

unread,
May 7, 2015, 2:38:49 PM5/7/15
to wag...@googlegroups.com
Yes, images are what I am working on now.

In my old blog, which I am importing from, I stored most of my photos in Gallery2 and used the WPG2 plug-in to include them in WordPress.  So now I have to migrate both Gallery2 and WordPress.  I am actually migrating my Gallery2 albums into static HTML using sigal (http://sigal.saimon.org) and will have to rewrite the wpg2 tags to standard img tags pointing to them.

For images that were uploaded to WordPress it seems like the simplest thing to do would be to copy the wp-content/uploads directory and setup your webserver to keep serving them from there.  But do you want them in the Wagtail image library?  I haven't got that far, but it seems like running a regular expression over each post to grab the filename, read it in to Wagtail might be a way to go.

All the best,
David.
Reply all
Reply to author
Forward
0 new messages