[wordpress插件] Custom Post View Generator自定义帖子视图生成器

wordpress 插件 文章 2020-04-09 10:01 467 0 全屏看文

AI助手支持GPT4.0

评分
66
描述

Creates views allowing the user to display of data of custom post type fields and other wordpress fields without the any theme modification.

创建视图,使用户可以显示自定义帖子类型字段和其他wordpress字段的数据,而无需进行任何主题修改。

The plugin allows administrator the ability to create views by simply selecting a post type, the fields and their respective types on the administration page and each time someone views a post from that type, the data from the custom fields will be displayed on

通过该插件,管理员只需在管理页面上选择帖子类型,字段及其各自的类型即可创建视图,每次有人查看该类型的帖子时,自定义字段中的数据将显示在

the frontend.

前端。

This plugin will use custom fields that are created in the wordpress page/post admin page and with fields created with the following plugins:

此插件将使用在wordpress页面/后管理页面中创建的自定义字段以及由以下插件创建的字段:

    • Reed Write By Brian S. Reed (http://www.scottreeddesign.com/)
    • 里德写作,作者:Brian S. Reed(http://www.scottreeddesign.com/)

    • Custom Content Type Manager By Everett Griffiths (http://code.google.com/p/wordpress-custom-content-type-manager/)
    • 自定义内容类型管理器,作者:Everett Griffiths(http://code.google.com/p/wordpress-custom-content-type-manager/)

    • Ultimate Post Type Manager by XYDAC (http://posttypemanager.wordpress.com/)
    • XYDAC(http://posttypemanager.wordpress.com/)的

    • 最终帖子类型管理器

    • Advanced Custom Fields by Elliot Condon (http://http://plugins.elliotcondon.com/advanced-custom-fields/)
    • Elliot Condon(http:// http://plugins.elliotcondon.com/advanced-custom-fields/)的

    • 高级自定义字段

    PLEASE READ THE Frequently Asked Questions AND Fields Info FOR MORE DETAILED INFORMATION.

    请阅读常见问题和字段信息以获取更多详细信息。

    Fields Info

    字段信息

    When selecting wich custom fields are going to be displayed, you need to select the appropriate type.

    选择要显示的自定义字段时,需要选择适当的类型。

    Here is a list of the custom fields created by wordpress and the recomended plugins and their appropriate types in this plugin.

    这是由wordpress创建的自定义字段以及此插件中推荐的插件及其适当类型的列表。

    NOTE1: plugins that add custom fields to the wordpress posts/pages usually store the data in the POSTMETA table, so check that section.

    注意1:将自定义字段添加到wordpress帖子/页面的插件通常将数据存储在POSTMETA表中,因此请检查该部分。

    NOTE2: Some plugins store data from custom fields differently depending on options selected by the admin in the plugins option page, so it might be necessary to try other types on this plugin.

    注意2:某些插件会根据管理员在插件选项页面中选择的选项,以不同的方式存储来自自定义字段的数据,因此可能有必要在此插件上尝试其他类型。

    WordPress Fields

    WordPress字段

    POST, PAGE:

    POST,PAGE:

      • ID, Parent ID – WordPress Post/Page ID, text
      • ID,父母ID – WordPress帖子/页面ID,文本

      • Author Id – WordPress User ID, text
      • 作者ID – WordPress用户ID,文本

      • Creation Date, Last modified – Date, text
      • 创建日期,最后修改 –日期,文本

      • Post Url – Hyperlink, text
      • 帖子网址 –超链接,文本

      • Thumbnail ID – Image (WordPress Attachment)
      • 缩略图ID –图片(WordPress附件)

      USER:

      USER:

        • ID– WordPress User ID, text
        • ID – WordPress用户ID,文本

        • User status– Boolean, text
        • 用户状态 –布尔值,文本

        • User url – Hyperlink, text
        • 用户网址 –超链接,文本

        • Remaing fields: text
        • 重命名字段:文本

        CATEGORY:

        类别:

          • Id – WordPress Category ID(s), Muliple values (Serialized)
          • 编号 – WordPress类别ID,多个值(序列化)

          • Remaining Fields – Muliple values (Serialized)
          • 剩余字段 –多个值(序列化)

          TAG:

          标签:

            • Id – WordPress Tag ID(s), Muliple values (Serialized)
            • ID – WordPress标记ID,多个值(序列化)

            • Remaining Fields – Muliple values (Serialized)
            • 剩余字段 –多个值(序列化)

            POSTMETA, TAXONOMY:

            POSTMETA,TAXONOMY:

              • All Fields – Depends how the values where stored.
              • 所有字段 –取决于如何存储值。

              Reed Write By Brian S. Reed

              Reed由Brian S. Reed撰写

                • Checkboxes – Mutiple Values (Serialized)
                • 复选框 –多个值(序列化)

                • Single Line of Text – Text
                • 单行文本 –文本

                • Mutiple Lines of Text – Text
                • 多行文本 –文本

                • Date – Date
                • 日期 –日期

                • Select – Text
                • 选择 –文字

                • Select Multiple – Mutiple Values (Vertical Bar)
                • 选择多个 –多个值(竖线)

                • Select an Image – Image(s) (WordPress Attachment)
                • 选择图像 –图像(WordPress附件)

                • Select a Color – Color (Web)
                • 选择颜色 –颜色(网页)

                • Select a Pdf – WordPress Attachment ID(s)
                • 选择Pdf – WordPress附件ID

                Custom Content Type Manager By Everett Griffiths

                Everett Griffiths的自定义内容类型管理器

                  • Checkbox – Boolean
                  • 复选框 –布尔值

                  • Color Selector – Color/Text (Depends on what the user Writes)
                  • 颜色选择器 –颜色/文本(取决于用户写的内容)

                  • Date – Text, Date
                  • 日期 –文本,日期

                  • Dropdown – Text
                  • 下拉 –文字

                  • Image – Image(s) (WordPress Attachment)
                  • 图片 –图片(WordPress附件)

                  • Media Field – WordPress Attachment ID(s), Image (WordPress Attachment), Audio, Video
                  • 媒体字段 – WordPress附件ID,图像(WordPress附件),音频,视频

                  • Multiselect – Multiple Values (JSON)
                  • 多重选择 –多个值(JSON)

                  • Relation – WordPress Attachment ID(s),
                  • 关系 – WordPress附件ID,

                  • User – Worpress User ID
                  • 用户 – Worpress用户ID

                  • Text – Text
                  • 文本 –文本

                  • TextArea – Text
                  • TextArea –文本

                  • Wysiwyg – Text
                  • 所见即所得 –文字

                  Ultimate Post Type Manager by XYDAC

                  通过XYDAC的最终帖子类型管理器

                    • Image – Single Image Url
                    • 图片 –单图片网址

                    • Link – Hiperlink (URL)
                    • 链接 –超级链接(URL)

                    • Text Area – Text
                    • 文本区域 –文本

                    • Rich Text Area – Text
                    • 富文本区域 –文本

                    • Check Box – Mutiple Values (Vertical Bar)
                    • 复选框 –多个值(竖线)

                    • Gallery – Multiple Image Urls (Comma)
                    • 图库 –多个图片网址(逗号)

                    • Text – Text
                    • 文本 –文本

                    • Radio Button – Mutiple Values (Vertical Bar)
                    • 单选按钮 –多个值(竖线)

                    • Combo Box – Text
                    • 组合框 –文字

                    Advanced Custom Fields by Elliot Condon

                    Elliot Condon的高级自定义字段

                      • Checkbox – Multiple Values (Serialized)
                      • 复选框 –多个值(序列化)

                      • Date – Datw
                      • 日期 – Datw

                      • File – WordPress Attachment ID(s), Image(s) (WordPress Attachment)
                      • 文件 – WordPress附件ID,图像(WordPress附件)

                      • Image – Image(s) (WordPress Attachment)
                      • 图片 –图片(WordPress附件)

                      • Number – Text
                      • 数字 –文字

                      • Page Link – WordPress Post/Page ID
                      • 页面链接 – WordPress帖子/页面ID

                      • Post Object – WordPress Post/Page ID
                      • 发布对象 – WordPress帖子/页面ID

                      • Radio Button – Text
                      • 单选按钮 –文字

                      • Relationship – WordPress Post/Page ID(s), WordPress Post/Page ID(s) (Serialized)
                      • 关系 – WordPress帖子/页面ID,WordPress帖子/页面ID(序列化)

                      • Select – Text
                      • 选择 –文字

                      • Select (Multiple Values) – Multiple Values (Array)
                      • 选择(多个值) –多个值(数组)

                      • Text – Text
                      • 文本 –文本

                      • Text Area – Text
                      • 文本区域 –文本

                      • True / False – Boolean
                      • 是/否 –布尔值

                      • Wysiwyg Editor – Text
                      • 所见即所得编辑器 –文字

安装步骤

    1. Install the plugin either by uploading the contents of

    2. 通过上传
      的内容来安装插件

      custom-post-view-generator.zip to the ‘/wp-content/plugins/’ directory

      custom-post-view-generator.zip到“ / wp-content / plugins /”目录

      or by using the ‘Add New’ in ‘Plugins’ menu in WordPress

    3. 或使用WordPress“插件”菜单中的“添加新内容”

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

    6. It is RECOMENDED that you delete you previous views and remake them to avoid compatibility issues.
    7. 建议您删除以前的视图并重新制作,以免出现兼容性问题。

    Instructions

    说明

    POST VIEWS:

    发布视图:

      1. Create the desired custom fields in the wordpress page/post admin page or with the plugins mentioned in the description.
      2. 在wordpress页面/后管理页面或描述中提到的插件中创建所需的自定义字段。

      3. Go to ‘Page Views’ on the ‘CTP View Generator’
      4. 转到“ CTP视图生成器”上的“页面视图”

      5. Select a post yype in the top drop-down box Post type and drag the a desired field on Available fields area to the left side.
      6. 在顶部下拉框帖子类型中选择一种类型,然后将可用字段区域中的所需字段拖到左侧。

      7. After dragging the field, a grey box will be displayed allowing to setup the display properties of that field.

      8. 拖动该字段后,将显示一个灰色框,用于设置该字段的显示属性。

        Write the desired label for that custom field, select the appropriate type (you can either test each one, or check the Fields Info section in Other Notes page), select available output

        为该自定义字段编写所需的标签,选择适当的类型(可以测试每个标签,或检查 Other Notes 页面中的字段信息部分),选择可用的输出

        options and press Save Layout.

      9. 选项,然后按保存布局

      10. OPTIONAL: You can also change the field order by dragging the grey box(es) up and down and even select a diferent view template on the Template drop-down box and press Save

      11. 可选:您还可以通过上下拖动灰色框来更改字段顺序,甚至可以在 Template 下拉框中选择不同的视图模板,然后按 Save

        Layout to save the changes

      12. 布局以保存更改

      LIST VIEWS:

      列表视图:

        1. Go to ‘List Views’ on the ‘CTP View Generator’
        2. 转到“ CTP视图生成器”上的“列表视图”

        3. Input the desired list name and select a template on the ‘List Views’ meta box.
        4. 输入所需的列表名称,然后在“列表视图”元框中选择一个模板。

        5. In the ‘Fields’ meta box, follow the same instructions that are indicated for the creation of ‘Post Views’.
        6. 在“字段”元框中,按照指示创建“后视图”的指示进行操作。

        7. In the ‘Finish’ meta box press Save Layout and use the shortcode suggested in the ‘List Views’ meta box in a post or page to display the list view.
        8. 在“完成”元框中,按保存布局,然后使用帖子或页面中“列表视图”元框中建议的简码显示列表视图。

        9. OPTIONAL 1: You can also add filters in the ‘Paremeters’ meta box, just make sure you read all intructions that are presented on the right side each time you change the paremeter section.
        10. 可选1:您还可以在“参数”元框中添加过滤器,只需确保每次更改参数部分时都阅读了右侧显示的所有说明。

        11. OPTIONAL 2: You can use the extra buttons in the ‘Finish’ meta box to instantly create a post or page to to display the list view.
        12. 可选2:您可以使用“完成”元框中的其他按钮立即创建帖子或页面以显示列表视图。

下载地址
https://downloads.wordpress.org/plugin/custom-post-view-generator.zip
-EOF-

AI助手支持GPT4.0