Title: Docs to WordPress
Author: William P. Davis
Published: <strong>2011 年 6 月 15 日</strong>
Last modified: 2015 年 9 月 30 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://s.w.org/plugins/geopattern-icon/docs-to-wordpress.svg)

# Docs to WordPress

 由 [William P. Davis](https://profiles.wordpress.org/wpdavis/) 開發

[下載](https://downloads.wordpress.org/plugin/docs-to-wordpress.1.1.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/docs-to-wordpress/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/docs-to-wordpress/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/docs-to-wordpress/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/docs-to-wordpress/#developers)

 [技術支援](https://wordpress.org/support/plugin/docs-to-wordpress/)

## 外掛說明

This plugin will grab docs out of a collection in Google Docs, create or update 
a post in WordPress and then move the doc to a new collection. Google Docs no longer
supports xmlrpc, so this is perhaps the easiest way to move content from your Google
Docs account to your self-hosted WordPress install.

You can see more details at http://dev.bangordailynews.com/2011/06/16/marrying-google-
docs-and-wordpress-or-really-any-cms/

## 安裝方式

 1. Upload `docs-to-wordpress` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Create a [Google App](https://console.developers.google.com/project) for your website.
 4. Enter Client ID and Client Secret into settings page.
 5. You should be redirected to a Google login page. Grant full permissions.
 6. If you wish, activate the extender plugin that removes formatting from Google Docs
    and removes comments, placing them in a separate meta box
 7. To run the plugin, you will need to either activate the included Cron Extender 
    or put code in a separate file and point a cron job to it.

Tara Kerwin has made a helpful installation walkthrough video available at https://
youtu.be/oFLjn2VOn-U

#### To run using WP CRON

Activate the cron extender.

#### To run using real cron

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();
    $results = $docs_to_wp->startTransfer();
    ```

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.

First create the folder that you want to store unpublished docs in. This is your“
Origin” folder. Next create the folder that you will move converted files to. This
is the “Target” folder. If you’re using Cron, you’re going to want to write stories
in a separate folder, and then move them to the Origin folder for publishing, when
they’re ready.

## 使用者評論

![](https://secure.gravatar.com/avatar/ad4c663dfec95b9a11e9e6384e8440f339d0064892ae0df8df1301932e7d8ac1?
s=60&d=retro&r=g)

### 󠀁[Great idea](https://wordpress.org/support/topic/great-idea-105/)󠁿

 [holgerhubbs](https://profiles.wordpress.org/holgerhubbs/) 2016 年 9 月 3 日

Great feature to push Google Docs to WordPress. Installation required some patience;
a value check for the WP configuration would be great; somehow I had several URLs
in the input fields. Re-editing in gDocs and then moving it back into the origin
folder is working (cron). After re-editing/re-submission the previous WP Category
setting were gone. I did not explore the formatting behavior. Super plugin for a
tech-savvy admin/developer. Don’t let this project die. Idea: In the WP settings
give me a field for an email address and send me a message w/ link for each new 
post. Also a check box would be great to choose between draft and publish for new
posts. [ Signature moderated ]

![](https://secure.gravatar.com/avatar/c339867bc8b161531fa6f71d283b21ca1470b92e66c4edee52ad744f8d0a92d0?
s=60&d=retro&r=g)

### 󠀁[Not ready for primetime](https://wordpress.org/support/topic/not-ready-for-primetime-1/)󠁿

 [richards1052](https://profiles.wordpress.org/richards1052/) 2016 年 9 月 3 日

Do not think you can use this plugin unless you have advanced tech/coding skills.
The installation instructions are incomplete & vague. Even getting clearer instructions
from the WP Support forum did not succeed in getting it installed. The idea of this
plugin is wonderful. But it requires installing three files & a variety of ancillary
coding/setup involving Google API configuration that it quite daunting, especially
without clearer instructions about how to do it. That being said, if you have all
these coding skills, you’ll love this plugin.

 [ 閱讀全部 8 則使用者評論 ](https://wordpress.org/support/plugin/docs-to-wordpress/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Docs to WordPress〉的開發相關工作。

參與者

 *   [ William P. Davis ](https://profiles.wordpress.org/wpdavis/)
 *   [ anubisthejackle ](https://profiles.wordpress.org/anubisthejackle/)

[將〈Docs to WordPress〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/docs-to-wordpress)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/docs-to-wordpress/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/docs-to-wordpress/)，或透過 
[RSS](https://plugins.trac.wordpress.org/log/docs-to-wordpress/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/docs-to-wordpress/)。

## 變更記錄

#### 1.1

Version bump. Removes anonymous functions, so it can be used as far back as PHP 
5.2

#### 1.0-beta

Update to remove deprecated Google API and use Drive API v2
 Updates to code to 
clean it up, remove extraneous loops. Added Options page. Changes to make it easier
to use.

#### 0.4-beta

Use HTTPS instead of HTTP, per new Google API spec.

Fix a few bugs with carrying over bold and italic

#### 0.3-beta

In extend-clean.php, extract the styles and apply them so bolding and italicizing
goes through. Also, don’t strip heading styles. Props nacin and Rob Flaherty.

#### 0.2-beta

Added the cron extender

#### 0.1-beta

Initial release

## 中繼資料

 *  版本 **1.1**
 *  最後更新 **11 年前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 3.7 或更新版本 **
 *  已測試相容的 WordPress 版本 **4.1.42**
 *  語言
 * [English (US)](https://wordpress.org/plugins/docs-to-wordpress/)
 * 標籤:
 * [docs](https://tw.wordpress.org/plugins/tags/docs/)[google](https://tw.wordpress.org/plugins/tags/google/)
   [google docs](https://tw.wordpress.org/plugins/tags/google-docs/)[syndication](https://tw.wordpress.org/plugins/tags/syndication/)
 *  [進階檢視](https://tw.wordpress.org/plugins/docs-to-wordpress/advanced/)

## 評分

 4 星，滿分為 5 星

 *  [  4 個 5 星使用者評論     ](https://wordpress.org/support/plugin/docs-to-wordpress/reviews/?filter=5)
 *  [  2 個 4 星使用者評論     ](https://wordpress.org/support/plugin/docs-to-wordpress/reviews/?filter=4)
 *  [  1 個 3 星使用者評論     ](https://wordpress.org/support/plugin/docs-to-wordpress/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/docs-to-wordpress/reviews/?filter=2)
 *  [  1 個 1 星使用者評論     ](https://wordpress.org/support/plugin/docs-to-wordpress/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/docs-to-wordpress/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/docs-to-wordpress/reviews/)

## 參與者

 *   [ William P. Davis ](https://profiles.wordpress.org/wpdavis/)
 *   [ anubisthejackle ](https://profiles.wordpress.org/anubisthejackle/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/docs-to-wordpress/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](http://wpdavis.com/)