Import Your Google Doc Files into WordPress in 4 Easy Steps

If you need a solution for importing your Google Doc files to WordPress in bulk, Docs to WordPress is the plugin for you. This plugin allows you to work in Google Docs and send the files to WordPress using an automated script when you are done. You can even do things like set the frequency of imports and move the file in Google Docs so that it isn’t recopied to WordPress multiple times.

Who is this plugin right for?

Time for some blunt and open honesty: if you’re the type of computer user who can’t work with anything other than WYSIWYG, ask a friend to help you with this plugin. If you use Google Docs once in every blue moon that only occurs in the month of May, this plugin is not for you.

If you use Google Docs a lot, need consistent formatting into WordPress, or want the writers for your blog away from your dashboard, this Google Docs WordPress plugin will save you headaches, hassle, and time.

How is this plugin used?

Unlike standard WordPress Plugins, Docs to WordPress is a cron job script. This means it is a script set to repeat at set intervals and perform a specific task every time it is set to run.

In short, you tell the script how often you want it to import your Google Docs to WordPress and it will take care of the rest.

Step 1 -> Installation

There are two plugins that you need in order to make this work. Do a Search for Docs to WordPress.

Install and activate it. At this point, you have the core plugin.

Click Plugins -> Installed Plugins

Activate Docs to WordPress extender – Run on Cron (every minute)

Now that you have the two major tools for this plugin to work, it is time to make the magic happen. Once again, if you are not comfortable with coding ask a friend who is to help you with this plugin.

Get to Know the Plugin!

Most of the magic happens in the plugin editor. Select the docs-to-wordpress/extend-cron.php file to modify. Take a moment to read through this, as it is what will do most of the magic.

Step 2 -> Insert Your Google Username and Password

This is my second concern with this plugin. Unless you use a totally new account dedicated to WordPress, you put your user name and password in a really insecure location. In my opinion, this is like disabling most of the security systems at Fort Knox and relying on the fact people believe it is secure to keep all of that gold safe.

Your safest route is to have a Google account dedicated to your WordPress.

You can mitigate this risk by taking the proper precautions with your WordPress security and changing your passwords frequently.

With that out of the way, here is how you insert your username and password:

DOCSTOWP_USER, DOCSTOWP_PASS is your Google Username and Password.

DO NOT CHANGE THAT PART OF THE CODE.

You need to either modify your wp-config.php if you have one or create it if you do not already have one. If you do not already have one, look for a file called wp-config-sample.php.

Once again, if you have no idea what you’re doing, ask someone who does. Your wp-config file is something like the key to your WordPress. Configure this wrong, and you’ve removed the security system from Fort Knox for your WordPress site.

Step 3 -> Configure the Origin and Destination of your Google Doc files

Once again, in your wp-config, you will need to define which folder in Google Docs your files are located for upload and define where they will be put after the script is done.

In order to configure the origin and destination folders for Google Docs, you will need to know the ID numbers of both folders. In Google, go to each of the folders and take the number found in the URL bar following #folders/folder.0.!

This is your folder’s ID. Define these numbers in wp-config. When you are done, your wp-config should have a section that looks a little something like this:

define( ‘DOCSTOWP_USER’, ‘thisismyname@gmail.com’ );

define( ‘DOCSTOWP_PASS’, ‘thisismypassword’ );

define( ‘DOCSTOWP_ORIGIN’, ’246542345′ );

define( ‘DOCSTOWP_DESTINATION’, ’12354742′ );

Once you are done that, all you need to do to make this plugin work is set the default time to run the cron script to your liking. The default is one minute, which should be more than sufficient for most users. It is clearly marked in the cron configuration file in your WordPress plugins.

Featured Plugin - WordPress Q&A Site Plugin

It's now incredibly easy to start your own Q&A site using nothing more than WordPress - The Q&A plugin simply and brilliantly transforms any site, or page, into a perfect support or Q&A environment.
Find out more

Featured Plugin - WordPress Membership Site Plugin

If you're thinking about starting a paid, or just private, membership site then this is truly the plugin you've been looking for. Easy to use, massively configurable and ready to go out of the box!
Find out more

Featured Plugin - WordPress Google Maps Plugin

Simply insert google maps into posts, sidebars and pages - show directions, streetview, provide image overlays and do it all from a simple button and comprehensive widget.
Find out more

Featured Plugin - WordPress Facebook Plugin

Would you like to add Facebook comments, registration, 'Like' buttons and autoposting to your WP site? Well, The Ultimate Facebook plugin has got that all covered!
Find out more

Featured Plugin - WordPress Pop-Up Chat Plugin

No javascript required, no third part chat engine, just fully featured chat right in your own database on your own WP sites - couldn't be easier.
Find out more

Featured Plugin - WordPress Wiki Plugin

To get a wiki up and running you used to need to install Mediawiki and toil away for days configuring it... not any more! This plugin gives you *all* the functionality you want from a wiki, in WordPress!!!
Find out more

Featured Plugin - WordPress Infinite SEO Plugin

Fully integrated with the SEOMoz API, complete with automatic links, sitemaps and SEO optimization of your WordPress setup - this is the only plugin you need to help you rank your site number 1 on Google - nothing else compares.
Find out more

Featured Plugin - WordPress Ecommerce Shopping Cart Plugin

Out of all the WordPress ecommerce plugins available, MarketPress has got to be the winner - easy to configure, powerful functionality, multiple gateways and more. A simply brilliant plugin!
Find out more

Featured Plugin - WordPress Newsletter Plugin

Now there's no need to pay for a third party service to sign up, manage and send beautiful email newsletters to your subscriber base - this plugin has got the lot.
Find out more

Comments (2)

  1. Thanks por that plugin, I’ll try it on Monday.
    Is there any possibility to generate a table in WordPress in which each cell contain a document of the directory?
    could you tell which. file or function do I modify to insert the code.
    I know how to generate. the table.
    Thank you very much

Participate