[wordpress插件] Display Terms Shortcode显示字词简码

wordpress 插件 文章 2020-04-19 16:31 456 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

The Display Terms Shortcode was written to allow users to easily display listings of terms without knowing PHP or editing template files.

编写显示术语简码是为了使用户可以轻松显示术语列表,而无需了解PHP或编辑模板文件。

Add the shortcode in a post, page or widget and use the arguments to query based on tag, category, post type, and many other possibilities.

在帖子,页面或小部件中添加简码,并使用参数根据标签,类别,帖子类型和许多其他可能性进行查询。

You can also customize the output with parameters like: include, child_of, and show_image.

您还可以使用诸如include,child_of和show_image之类的参数来自定义输出。

To use the shortcode, simply place the [display-terms] shortcode in any post, page or widget and change the parameters to your liking.

要使用简码,只需将 [display-terms] 简码放置在任何帖子,页面或小部件中,然后根据自己的喜好更改参数。

Available parameters (and defaults):

可用参数(和默认值):

    • taxonomy => ‘category’
    • taxonomy =>“类别”

    • orderby => ‘name’
    • orderby =>“名称”

    • order => ‘ASC’
    • order =>“ ASC”

    • hide_empty=> true
    • hide_empty => true

    • include => ‘all’
    • include =>“全部”

    • exclude => ‘all’
    • 排除=>“全部”

    • exclude_tree => ‘all’
    • exclude_tree =>“全部”

    • number => false
    • number => false

    • offset => ”
    • offset =>”

    • fields => ‘all’
    • fields =>‘all’

    • name => ”
    • name =>”

    • slug => ”
    • slug =>”

    • hierarchical => true
    • hierarchical => true

    • search => ”
    • search =>”

    • name__like=> ”
    • name__like =>”

    • description__like => ”
    • description__like =>”

    • pad_counts=> false
    • pad_counts =>假

    • get => ”
    • get =>”

    • child_of => false
    • child_of =>假

    • childless => false
    • 无子=>假

    • cache_domain => ‘core’
    • cache_domain =>“核心”

    • update_term_meta_cache => true
    • update_term_meta_cache =>是

    • meta_query=> ”
    • meta_query =>”

    • meta_key => array()
    • meta_key => array()

    • meta_value=> ”
    • meta_value =>”

    • show_link => true
    • show_link => true

    • show_name => true
    • show_name => true

    • show_description => false
    • show_description =>假

    • show_count=> false
    • show_count => false

    • show_image=> true
    • show_image => true

    • image_size=> ‘full’
    • image_size =>“已满”

    • post_type => ‘post’,
    • post_type =>“发布”,

    • post_include => [],
    • post_include => [],

    • post_exclude => [],
    • post_exclude => [],

    • post_order=> ‘DESC’,
    • post_order =>“ DESC”,

    • post_orderby => ‘modified’,
    • post_orderby =>“已修改”,

    • number_to_search => 10,
    • number_to_search => 10,

    • parent_element => ‘ul’,
    • parent_element =>“ ul”,

    • child_element => ‘li’,
    • child_element =>“ li”,

    • class_prefix => ‘terms’,
    • class_prefix =>“条款”,

    Available filters

    可用的过滤器

    Every line of output in this plugin runs through a filter.

    此插件中的每一行输出都通过一个过滤器。

    display_terms_shortcode_open

      display_terms_shortcode_open

    display_terms_shortcode_inner_open

    display_terms_shortcode_inner_open

    display_terms_shortcode_link_open

    display_terms_shortcode_link_open

    display_terms_shortcode_name

    display_terms_shortcode_name

    display_terms_shortcode_description

    display_terms_shortcode_description

    display_terms_shortcode_count

    display_terms_shortcode_count

    display_terms_shortcode_latest

    display_terms_shortcode_latest

    display_terms_shortcode_image_id

    display_terms_shortcode_image_id

    display_terms_shortcode_image

    display_terms_shortcode_image

    display_terms_shortcode_link_close

    display_terms_shortcode_link_close

    display_terms_shortcode_inner_close

    display_terms_shortcode_inner_close

    display_terms_shortcode_close

    display_terms_shortcode_close

    display_terms_shortcode_output

    display_terms_shortcode_output

    Featured images

    精选图片

    If the show_image parameter is set to true, the shortcode will look for the featured image of the latest post in the term.

    如果将 show_image 参数设置为 true ,则简码将查找该术语中最新帖子的特色图片。

    You can change the size of the featured image with the image_size attribute.

    您可以使用 image_size 属性更改特色图片的大小。

    Contributing

    贡献

    Feature suggestions and pull requests are welcome at this plugins Github repository – https://github.com/seothemes/display-terms-shortcode/

    欢迎在此插件Github存储库中提出功能建议和请求请求– https://github.com/seothemes/display-terms-shortcode/

    Before submitting a pull request please run translations using the following command (wp cli required):

    在提交请求之前,请使用以下命令运行翻译(需要wp cli):

    wp i18n make-pot ./ ./languages/display-terms-shortcode.pot

      wp i18n Make-pot ./ ./languages/display-terms-shortcode.pot

安装步骤

Automatic Plugin Installation

自动插件安装

    1. Go to Plugins > Add New.
    2. 转到插件>添加新内容。

    3. Type in the name of the WordPress Plugin or descriptive keyword, author, or tag in Search Plugins box or click a tag link below the screen.
    4. 在“搜索插件”框中输入WordPress插件的名称或描述性关键字,作者或标签的名称,或单击屏幕下方的标签链接。

    5. Find the WordPress Plugin you wish to install.
    6. 找到您要安装的WordPress插件。

    7. Click Details for more information about the Plugin and instructions you may wish to print or save to help setup the Plugin.
    8. 单击“详细信息”以获取有关该插件的更多信息以及您可能希望打印或保存以帮助设置该插件的说明。

    9. Click Install Now to install the WordPress Plugin.
    10. 单击立即安装以安装WordPress插件。

    11. The resulting installation screen will list the installation as successful or note any problems during the install.
    12. 出现的安装屏幕将列出安装成功或记录安装过程中的任何问题。

    13. If successful, click Activate Plugin to activate it, or Return to Plugin Installer for further actions.
    14. 如果成功,请单击“激活插件”以将其激活,或者单击“返回插件安装程序”以执行进一步的操作。

    Manual Plugin Installation

    手动插件安装

      1. Download your WordPress Plugin to your desktop.
      2. 将WordPress插件下载到桌面上。

      3. If downloaded as a zip archive, extract the Plugin folder to your desktop.
      4. 如果以zip存档的形式下载,请将Plugin文件夹解压缩到您的桌面。

      5. Read through the \\”readme\\” file thoroughly to ensure you follow the installation instructions.
      6. 通读\\“ readme \\”文件,以确保您遵循安装说明。

      7. With your FTP program, upload the Plugin folder to the wp-content/plugins folder in your WordPress directory online.
      8. 使用您的FTP程序,在线将Plugin文件夹上传到WordPress目录中的wp-content / plugins文件夹。

      9. Go to Plugins screen and find the newly uploaded Plugin in the list.
      10. 转到“插件”屏幕,然后在列表中找到新上载的插件。

      11. Click Activate to activate it.
      12. 点击激活将其激活。

下载地址
https://downloads.wordpress.org/plugin/display-terms-shortcode.zip
-EOF-

AI助手支持GPT4.0