Difference between revisions of "Export blog pages to Wordpress"

From Organic Design wiki
(Job description)
m
Line 2: Line 2:
  
 
== Job description ==
 
== Job description ==
I need the blog moved into a Wordpress. To test your export/import you can export say ten of the last blog items or something. The very old blog items such as [[Mum & Dad's 2018 Brazil holiday]] were just a single long page, so I need to edit the XML export and change those into individual posts.
+
I need the blog moved into a Wordpress. To test your export/import you can export say ten of the last blog items or something. The very old blog items such as [[2018 Holiday in Brazil]] were just a single long page, so I need to edit the XML export and change those into individual posts.
  
 
You'll need to parse the XML output to get the article meta information such as title and creation data, and also convert the wikitext into the format for importing into Wordpress. But only a small fraction of the wikitext is required, because the blog posts are quite similar in format. For example, all images are of the format <tt><nowiki>[[File:<FILENAME>.jpg|<SIZE>px]]</nowiki></tt>, and these are either standalone or in a <tt><nowiki>{{table...}}</nowiki></tt> syntax which just puts them side by side but wrapping onto the next line depending on window size. There are a few right aligned images, but these could probably be dealt with manually afterwards. There are no headings or bullet lists, and the only styling at all is bold and italic.
 
You'll need to parse the XML output to get the article meta information such as title and creation data, and also convert the wikitext into the format for importing into Wordpress. But only a small fraction of the wikitext is required, because the blog posts are quite similar in format. For example, all images are of the format <tt><nowiki>[[File:<FILENAME>.jpg|<SIZE>px]]</nowiki></tt>, and these are either standalone or in a <tt><nowiki>{{table...}}</nowiki></tt> syntax which just puts them side by side but wrapping onto the next line depending on window size. There are a few right aligned images, but these could probably be dealt with manually afterwards. There are no headings or bullet lists, and the only styling at all is bold and italic.

Revision as of 20:13, 9 April 2019

Info.svg This page is about the task of migrating the blog pages into a Wordpress.


Job description

I need the blog moved into a Wordpress. To test your export/import you can export say ten of the last blog items or something. The very old blog items such as 2018 Holiday in Brazil were just a single long page, so I need to edit the XML export and change those into individual posts.

You'll need to parse the XML output to get the article meta information such as title and creation data, and also convert the wikitext into the format for importing into Wordpress. But only a small fraction of the wikitext is required, because the blog posts are quite similar in format. For example, all images are of the format [[File:<FILENAME>.jpg|<SIZE>px]], and these are either standalone or in a {{table...}} syntax which just puts them side by side but wrapping onto the next line depending on window size. There are a few right aligned images, but these could probably be dealt with manually afterwards. There are no headings or bullet lists, and the only styling at all is bold and italic.

Resources

See also