It’s been fun, if a head scratcher.

Moving from Hugo to WordPress, I couldn’t see a way to bulk import my posts, so took it upon myself to write a Python script to do the job. I save my posts as markdown files, so the script runs through each one and writes the content to a CSV file. Then I use an importer plugin for WordPress to import them all. A bit of tweaking to do here and there as not all the files are in quite the same format. Other than that, it works.


Leave a Reply

Your email address will not be published. Required fields are marked *