How To Publish From Google Docs To WordPress
  • Save

How To Publish From Google Docs To WordPress Without Any Hassle

Note: this post has been rewritten from scratch as of 30/01/2019.

Google Docs has changed the way people write, take notes and collaborate with one another. It’s also changed the way we blog.

Instead of forking over a large amount of money for a poorly ran word processor or using a semi-supported, open-source solution, you can now write blog posts on the fly and have your work saved to the cloud as you go.

Unfortunately, transferring your posts to WordPress is still a tedious process. Plus, solutions that help you upload your content from Google Docs to WordPress either don’t work well or are no longer supported.

That’s where Mammoth .docx Converter comes into play.

What is Mammoth .docx Converter?

Mammoth .docx Converter is a WordPress plugin that allows you to upload DOCX files to WordPress and convert them into HTML for the WordPress post editor.

Since Google Docs allows you to convert your documents into DOCX files, you can use this plugin to publish posts from Google Docs to WordPress.

Here’s a complete list of the content this plugin formats from DOCX files:

  • Headings
  • Lists
  • Borderless Tables
  • Footnotes and Endnotes
  • Images*
  • Text Styling
  • Links
  • Text Boxes

Although the plugin will upload images from DOCX files to your WordPress site, I don’t recommend uploading them this way. This is because at some point during the process of converting the Google doc into a DOCX file and uploading that DOCX file to WordPress, it changes the names of your images to “word-image-1”, “word-image-2,” etc.

How does Mammoth .docx Converter work?

The first step to using this plugin is done in Google Docs. Make sure your post is formatted with your desired headings, links, lists, etc. Next, convert the document into a Microsoft Word doc by going to File → Download as → Microsoft Word (docx).

google docs microsoft word
  • Save

Save the document to your desktop for now to make things easier on yourself. Put it to the side for now.

From the WordPress admin, go to Plugins → Add New. Type “mammoth” into the search bar to find, install and activate the plugin.

install mammoth docx converter
  • Save

This plugin is incredibly simple and has no settings. To use it, start by creating a new post, and scroll down to the bottom of the post editor page.

mammoth docx converter screen option
  • Save

You’ll see a screen option for the plugin, which includes a Browse button. This is what you’ll use to upload your document. All you need to do is click the button, and select the DOCX file from your desktop.

The tool has three tabs you can view. The first is Visual, a view of the formatted post from a frontend perspective. Don’t worry if you don’t see the font styles your actual posts use (if you customized them with custom code or a plugin like Easy Google Fonts, for instance). This tab is simply replicating the editor’s styles.

mammoth docx converter visual
  • Save

The second tab is called Raw HTML. It shows how the tool has formatted your post from DOCX to HTML. You’ll find your paragraphs and headings have been formatted into p, h1, h2, etc., tags accordingly.

mammoth docx converter raw html
  • Save

The only issue I found was an ID tag being applied to every header in my post. It wasn’t closed or applied anywhere else in the post, so it didn’t register as a link on the frontend. However, removing it from every header in the post was a bit tedious.

Fortunately, it doesn’t seem to be a common issue with the plugin, so you may not even experience it yourself.

The Messages tab did not generate any messages for me in all of my tests, but it’s reserved for any errors that occur with your converted document.

It should be noted that the Visual and Raw HTML tabs are not editors, so you’ll need to make changes to your document and re-upload it if there are any errors.

Once you’re certain all is well, click Insert Into Editor to fully upload the post onto your WordPress site.

mammoth docx converter editor
  • Save

Apart from the issue with images mentioned in the previous section, the only other issue I found had to do with alignment. Everything aligns to the left, including anything you centered, so you’ll need to go through your post and re-align certain elements.

That’s all there is to it. You now have a clean and simple way of publishing content from Google Docs to your WordPress site.

How does Mammoth .docx Converter work with Gutenberg?

mammoth docx converter gutenberg
  • Save

I did test this plugin on a test site using Gutenberg and the Twenty Nineteen theme. I’m happy to report it works just as well as it does with the Classic Editor, only it uploads the entire formatted post as a single Classic block.

Wrapping it up

Thanks for checking out this tutorial. We hope you’ve found it useful.

If you haven’t already, be sure to subscribe to our newsletter for the latest WordPress news & tutorials.

  • Save