[wordpress插件] Docs to WordPressDocs到WordPress

wordpress 插件 文章 2020-04-20 17:41 478 0 全屏看文

AI助手支持GPT4.0

评分
80
描述

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文档的集合中提取文档,在WordPress中创建或更新帖子,然后将文档移至新集合。

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.

Google文档不再支持xmlrpc,因此这可能是将内容从Google文档帐户移至自托管WordPress安装的最简单方法。

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

您可以在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. docs-to-wordpress 上载到 / wp-content / plugins / 目录

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

    5. Create a Google App for your website.
    6. 为您的网站创建一个 Google应用

    7. Enter Client ID and Client Secret into settings page.
    8. 在设置页面中输入客户端ID和客户端密钥。

    9. You should be redirected to a Google login page.

    10. 您应该被重定向到Google登录页面。

      Grant full permissions.

    11. 授予完全权限。

    12. If you wish, activate the extender plugin that removes formatting from Google Docs and removes comments, placing them in a separate meta box
    13. 如果需要,请激活扩展程序插件,该插件会从Google文档中删除格式并删除注释,并将其放在单独的元框中

    14. 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.
    15. 要运行该插件,您需要激活随附的Cron Extender或将代码放在单独的文件中,然后将cron作业指向该文件。

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

    Tara Kerwin已在https://youtu.be/oFLjn2VOn-U 上提供了有用的安装演练视频。

    To run using WP CRON

    要使用WP CRON运行

    Activate the cron extender.

    激活cron扩展器。

    To run using real cron

    要使用真正的cron运行

    Create a file to run cron against, and put the following code in it:

    创建一个要对cron运行的文件,并将以下代码放入其中:

      <?php

    include('./wp-load.php');

    包括('./wp-load.php');

    $docs_to_wp = new Docs_To_WP();

    $ docs_to_wp =新的Docs_To_WP();

    $results = $docs_to_wp->startTransfer();

    $ 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.

    如果您使用的是Cron,则需要在一个单独的文件夹中编写故事,然后在准备好它们之后将其移动到Origin文件夹中进行发布。

下载地址
https://downloads.wordpress.org/plugin/docs-to-wordpress.1.1.zip
-EOF-

AI助手支持GPT4.0