Easily move posts from Google Docs to WordPress
Activate the cron extender and define, in your wp-config DOCSTOWP_USER, DOCSTOWP_PASS, DOCSTOWP_ORIGIN and DOCSTOWP_DESTINATION like so:
define( 'DOCSTOWP_USER', 'email@example.com' ); define( 'DOCSTOWP_PASS', 'mypassword' );
Create a file to run cron against, and put the following code in it:
<?php include('./wp-load.php'); $docs_to_wp = new Docs_To_WP(); $gdClient = $docs_to_wp->docs_to_wp_init( 'firstname.lastname@example.org', 'password' ); $docs_to_wp->retrieve_docs_for_web( $gdClient, Source folder ID, Destination folder ID );
You will need to have a folder to draw the docs from and an optional folder to put the docs in after they've been processed.
In docs, the ID looks a little something like this in the URL: #folders/folder.0.!--ID STARTS HERE, after the 0 and the period --!