Easily move posts from Google Docs to WordPress
plugin-name.php to the /wp-content/plugins/ directoryActivate the cron extender and define, in your wp-config DOCSTOWP_USER, DOCSTOWP_PASS, DOCSTOWP_ORIGIN and DOCSTOWP_DESTINATION like so:
define( 'DOCSTOWP_USER', 'example@gmail.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( 'example@gmail.com', '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 --!
Requires: 3.0 or higher
Compatible up to: 3.2.1
Last Updated: 2011-10-20
Downloads: 2,410
Got something to say? Need help?