[wordpress插件] LSD Custom taxonomy and category metaLSD自定义分类法和类别元

wordpress 插件 文章 2020-04-09 23:50 401 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

Plugin to manage and use custom meta fields within builtin and custom taxonomies.

插件,用于管理和使用内置和自定义分类法中的自定义元字段。

Simply add the desired fields by navigating to Settings > Category meta in your WordPress administration panel.

只需在WordPress管理面板中导航至“设置”>“类别”元,即可添加所需的字段。

安装步骤

    1. Unzip into your /wp-content/plugins/ directory.

    2. 解压缩到您的 / wp-content / plugins / 目录。

      If you’re uploading it make sure to upload

      如果要上传,请确保上传

      the top-level folder.

      顶层文件夹。

      Don’t just upload all the php files and put them in /wp-content/plugins/.

    3. 不要只是上传所有的php文件并将它们放在 / wp-content / plugins / 中。

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

    6. Go to your Administration interface in the “Settings” menu a new “Category Meta” page is created.

    7. 转到“设置”菜单中的“管理”界面,将创建一个新的“类别元”页面。

      Configure the meta you want to use.

    8. 配置您要使用的元。

    9. go to your Administration interface, in the “Category” menu -> new fields are displayed in the category modification form with the meta you configured.
    10. 转到管理界面,在“类别”菜单中->新字段会显示在类别修改表单中,其中包含您配置的元。

    11. That’s it!
    12. 就是这样!

    13. you can use the folowing functions into your templates to retreive 1 meta:

      您可以在模板中使用以下功能来检索1个元数据:

      if (function_exists(‘get_terms_meta’))

      如果(function_exists('get_terms_meta'))

      {
          

      {
          

      $metaValue = get_terms_meta($category_id, $meta_key);

      $ metaValue = get_terms_meta($ category_id,$ meta_key);

      }

      }

    14. you can use the folowing functions into your templates to retreive all meta:

      您可以在模板中使用以下功能来检索所有元数据:

      if (function_exists(‘get_all_terms_meta’))

      如果(function_exists('get_all_terms_meta'))

      {
          

      {
          

      $metaList = get_all_terms_meta($category_id);

      $ metaList = get_all_terms_meta($ category_id);

      }

      }

下载地址
https://downloads.wordpress.org/plugin/custom-taxonomy-category-and-term-fields.1.3.2.zip
-EOF-

AI助手支持GPT4.0