[wordpress插件] Advanced Custom Fields – Taxonomy Field add-on高级自定义字段–分类字段附加组件

wordpress 插件 文章 2020-02-07 10:40 539 0 全屏看文

AI助手支持GPT4.0

评分

100

100

描述

This is an add-on for the Advanced Custom Fields

这是高级自定义字段的附加组件

WordPress plugin and will not provide any functionality to WordPress unless Advanced Custom Fields is installed

WordPress插件,除非安装了高级自定义字段,否则不会为WordPress提供任何功能

and activated.

并激活。

The taxonomy field provides a select, multi-select or checkboxes of taxonomy terms (categories, tags, custom taxonomies…)

“分类法”字段提供选择,多项选择或复选框的分类法术语(类别,标签,自定义分类法…)

and the ability to map the selected terms to the post.

以及将所选字词映射到帖子的功能。

The post type must support the taxonomy for the mapping to work.

帖子类型必须支持分类法,映射才能起作用。

The taxonomy field currently does not provide the ability to add new terms to a taxonomy.

分类法字段当前不提供向分类法添加新术语的功能。

The return type of the get_value()

get_value()
的返回类型

api can be changed in the field settings.

可以在字段设置中更改api。

Source Repository on GitHub

GitHub上的源存储库

https://github.com/GCX/acf-taxonomy-field

https://github.com/GCX/acf-taxonomy-field

Bugs, Questions or Suggestions

错误,问题或建议

https://github.com/GCX/acf-taxonomy-field/issues

https://github.com/GCX/acf-taxonomy-field/issues

Todo

Todo

    • Add ability to add new terms to a taxonomy
    • 增加向分类法添加新术语的功能

    • Add more term selection methods (checkboxes, token input).
    • 添加更多的术语选择方法(复选框,令牌输入)。

安装步骤

The Taxonomy Field plugin can be used as WordPress plugin or included in other plugins or themes.

Taxonomy Field插件可以用作WordPress插件,也可以包含在其他插件或主题中。

There is no need to call the Advanced Custom Fields register_field() method for this field.

无需为此字段调用高级自定义字段 register_field()方法。

    • WordPress plugin

    • WordPress插件

        1. Download the plugin and extract it to /wp-content/plugins/ directory.
        2. 下载插件并将其解压缩到 / wp-content / plugins / 目录。

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

      1. Added to Theme or Plugin

      2. 已添加到主题或插件

          1. Download the plugin and extract it to your theme or plugin directory.
          2. 下载插件并将其解压缩到主题或插件目录。

          3. Include the taxonomy-field.php file in you theme’s functions.php or plugin file.
               

          4. 在主题的 functions.php 或插件文件中包含 taxonomy-field.php 文件。
               

            include_once( rtrim( dirname( FILE ), ‘/’ ) . ‘/acf-taxonomy-field/taxonomy-field.php’ );

          5. include_once(rtrim(dirname( FILE ),‘/’)。‘/acf-taxonomy-field/taxonomy-field.php’);

下载地址

https://downloads.wordpress.org/plugin/advanced-custom-fields-taxonomy-field-add-on.1.4.zip

https://downloads.wordpress.org/plugin/advanced-custom-fields-taxonomy-field-add-on.1.4.zip

-EOF-

AI助手支持GPT4.0