[wordpress插件] Code To Post发布代码

wordpress 插件 文章 2020-03-26 18:20 533 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

⚠️ This plugin in development

⚠️这个开发中的插件

This plugin update or make post from static html files.

此插件更新或通过静态html文件发布信息。

It’s useful for development.

这对开发很有用。

How it works:

工作原理:

    1. Create a base directory on your server.
    2. 在服务器上创建基本目录。

    3. Create directory named by “post type slug” in base directory.
    4. 在基本目录中创建以“ post type slug”命名的目录。

    5. Put html file in the directory.

    6. 将html文件放入目录中。

      and save post content to this html.

    7. 并将帖子内容保存到此html。

    8. Go to ‘Code to Post’ menu, and click ‘Update to Post’.
    9. 转到“代码发布”菜单,然后单击“更新为发布”。

    Example tree

    示例树

    my-posts-dir
        

    my-posts-dir
        

    ├── post ( posttype slug )
        

    ├──柱子(子弹头)
        

    │ ├── hello.html ( post slug.html )
        

    │├──hello.html(post slug.html)
        

    │ └── any-slug.html
        

    │└──any-slug.html
        


        


        

    ├── page
        

    ├──页面
        

    │ ├── about.html
        

    │├──about.html
        

    │ ├── searvice.html
        

    │├──searvice.html
        

    │ └── searvice ( parent post slug )
        

    │└──searvice(父子弹)
        

    │ ├── searvice-child-01.html
        

    │├──searvice-child-01.html
        

    │ └── searvice-child-02.html
        

    │└──searvice-child-02.html
        


        


        

    └── my-custom-post
            

    └──my-custom-post
            

    ├── custom-post-01.html
            

    ├──custom-post-01.html
            

    └── custom-post-02.html

    └──custom-post-02.html

安装步骤

    1. Upload code-to-post to the /wp-content/plugins/ directory
    2. code-to-post 上载到 / wp-content / plugins / 目录

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

    5. Update congiguration through ‘Code to Post’ menu in WordPress
    6. 通过WordPress中的“要发布的代码”菜单更新配置

下载地址
https://downloads.wordpress.org/plugin/code-to-post.0.1.4.zip
-EOF-

AI助手支持GPT4.0