New Feature: Import from WordPress (and EPUB)

We’ve just added Import* to PressBooks, starting with: WordPress XML, and EPUB. More import formats are on the way. Below, I will show you how the import from WordPress works (EPUB is the same process, just a different file source).

Step 1: Get your WordPress XML file from your blog

In your WordPress admin, go to:  Tools –> Export

(found at: ~/wp-admin/export)

Export the content you want into an XML file.

Exporting your WordPress XML File

Exporting your WordPress XML File

 Step 2: Go to PressBooks –> Utilities –> Import

In PressBooks, go to the left menu: Utilities –> Import.

Utilities --> Import

Utilities –> Import


Step 3: Select your file type, choose your file, and upload

On the import page:

  1. Decide what file type you wish to import (WordPress XML/WXR or EPUB)
  2. Choose the file on your harddrive
  3. Upload the file
PressBooks Import Select File & Type

PressBooks Import Select File & Type


Step 4:  Choose Chapters, Frontmatter, and Backmatter

Now choose which “chapters” you want to import (or select all).

Decide whether the imports will be frontmatter, chapters or backmatter


a) you cannot undo your chapter/frontmatter/backmatter choices once you have importer

b) You’ll need to edit front- and backmatter to make sure they have the right “types” associated with each one.

Step 5: Press “Start”


PressBooks Import Start

PressBooks Import Start


Step 6: Voila:

And voila! Here is your blog, now a “book” in PressBooks.

PressBooks Import: Voila!

PressBooks Import: Voila!




  1. Thanks to Brad Payne of BC Campus and Michael Geilser for contributions to this new feature
  2. Currently, images from WordPress files are not pulled directly into your PressBooks book — we only point to the images in your old blog. However, we do pull the images into your EPUB and PDF exports.
  3. Your chapters are imported with default “DRAFT” status. You’ll have to “publish” each one for the moment. We’ll add user control for this setting, eventually.
  4. We will be adding other import file sources (eg. docx) in the coming months, and we welcome (enthusiastically!) contributions to our open source code.
  5. *We had previous version of an import tool, built by Stephanie Leary. We disabled that when we rolled out PressBooks 2.0 in February 2013. This new importer used the previous tool as a starting point, but has made some significant changes.

10 thoughts on “New Feature: Import from WordPress (and EPUB)

  1. inchy78

    everytime i try to import wordpress to pressbooks nothing happens. is my file (9.3mb) too big or do I have too many posts (c. 1,000 separate posts). if neither of these are a problem, why isn’t it working properly. If one of the 2 size issues (or both) are problems, is there a workaround?

    • Hugh

      it might be too big … a free book/no upgrade has a max of 5MB of space allocated. have you upgraded your book ($10 will get you 25MB). if that doesn’t work, i’ll give you a refund … 1000 posts does make me nervous.

  2. inchy78

    no i havent upgraded, but seeing as your nervous I am not sure if I should? Are there any alternative ways I can convert wordpress blog content to an ebook? It is proving painfully difficult… I havent downloaded so much junk since I was a kid! any help/advice gratefully appreciated…

  3. inchy78

    is there anyway I can get an a storage upgrade to 10mb just to trial whether the pressbooks will work with 1,000 posts?

  4. Hugh

    “is there anyway I can get an a storage upgrade to 10mb just to trial whether the pressbooks will work with 1,000 posts?”

    as i said above, you can upgrade to 25MB for $10 … if that doesn’t work I’ll refund you.

Comments are closed.