[wordpress插件] CatWalker猫行者

wordpress 插件 文章 2020-03-18 23:20 509 0 全屏看文

AI助手支持GPT4.0

评分
60
描述

The catWalker plugin lets you do more with WordPress categories.

catWalker插件可让您对WordPress类别进行更多操作。

The plugin has these main uses.

该插件具有这些主要用途。

    1. Generate a customizable list of categories within the contents of a page or post
    2. 在页面或帖子的内容中生成可自定义的类别列表

    3. Create a configurable widget that will make it easy for visitors to find posts or pages at the intersection of two categories
    4. 创建一个可配置的小部件,使访问者可以轻松地找到两个类别的交集处的帖子或页面

    5. Generate a list of cross-categorizations on a page or post
    6. 在页面或帖子上生成交叉分类列表

    7. List the posts or pages from a given category on a page or post
    8. 在页面或帖子中列出给定类别的帖子或页面

    9. Automatically list at the bottom of each post the categories which have been assigned to that post
    10. 自动在每个帖子的底部列出已分配给该帖子的类别

    11. Automatically list at the bottom of each post other posts in the same category
    12. 自动在每个帖子的底部列出同一类别的其他帖子

    13. Customize the ordering preferences and number of posts on category archive pages
    14. 自定义类别存档页面上的订购首选项和帖子数

    In addition, users can opt to use a hierarchical custom taxonomy (called “Attributes”) that applies to Pages as well as Posts.

    此外,用户可以选择使用适用于页面和帖子的分层自定义分类法(称为“属性”)。

    If you use the Attributes taxonomy, most of the above options can be used on pages as well as posts.

    如果您使用“属性”分类法,则以上大多数选项都可以在页面和帖子中使用。

    List categories

    列出类别

    To generate a list of your site’s categories add the following shortcode (in square brackets) to any post or page:

    要生成您网站类别的列表,请在任何帖子或页面上添加以下短代码(在方括号中):

    [categories]

    [类别]

    The listing is highly configurable.

    该列表是高度可配置的。

    To show just one branch of your category structure, for instance, you can create a shortcode like this:

    例如,要仅显示类别结构的一个分支,可以创建如下的短代码:

    [categories child_of=”#”]

    [类别child_of =“#”]

    where the # stands for the id of the parent category.

    其中#代表父类别的ID。

    This is only one of many attributes that you can use to customize your list.

    这只是可用于自定义列表的许多属性之一。

    In general, you should be able to use any of the options documented at:

    通常,您应该可以使用以下文档中记录的任何选项:

    https://codex.wordpress.org/Template_Tags/wp_list_categories

    https://codex.wordpress.org/Template_Tags/wp_list_categories

    In addition, if you can set a ‘taxonomy’ for your listing.

    此外,如果您可以为列表设置“分类”。

    In general, your choices will be to use the built-in “Categories” taxonomy or the custom “Attributes” taxonomy that comes with this plugin.

    通常,您的选择将是使用此插件附带的内置“类别”分类法或自定义“属性”分类法。

    Go to Settings > Writing to choose whether or not to use the custom “Attributes” taxonomy, and whether or not to make it the default for all CatWalker functions (shortcodes and the CrossCategorizer widget).

    转到“设置”>“编写”以选择是否使用自定义“属性”分类法,以及是否将其设置为所有CatWalker功能(短代码和CrossCategorizer小部件)的默认分类。

    Cross Categorizer widget

    跨分类器小部件

    On display pages, the Cross Categorizer widget includes two configurable dropdown lists of categories.

    在显示页面上,“交叉分类器”小部件包括两个类别的可配置下拉列表。

    Choose two categories, then click “Search” to view the posts or pages that belong to both.

    选择两个类别,然后单击“搜索”以查看属于这两个类别的帖子或页面。

    On the admin side you can configure the widget to show different category branches in each dropdown.

    在管理员端,您可以配置小部件以在每个下拉列表中显示不同的类别分支。

    As of version 1.3.1 you can also opt to list empty categories.

    从1.3.1版开始,您还可以选择列出空白类别。

    Previously empty categories were not listed, and that is still the default behavior.

    以前没有列出空类别,这仍然是默认行为。

    Cross Categorizer shortcode

    跨分类器简码

    You can add a configurable list of cross-categorizations to any post or page.

    您可以将交叉分类的可配置列表添加到任何帖子或页面。

    Use this shortcode

    使用此简码

    [crosscat]

    [crosscat]

    with any of the options documented at:

    ,其中记录了以下任何选项:

    https://codex.wordpress.org/Function_Reference/get_categories

    https://codex.wordpress.org/Function_Reference/get_categories

    To show cross categorizations add an “intersector” attribute.

    要显示交叉分类,请添加“ intersector”属性。

    The list of categories will then link only to posts that belong also to the intersector category.

    然后,类别列表将仅链接到也属于部门间类别的帖子。

    Imagine, for instance, that “10” is the id for a category called “Years” with child categories “2011,” “2010,” “2009,” etc. Let “20” be the id for a category that names a particular

    例如,想象一下,“ 10”是一个名为“ Years”的类别的ID,其子类别是“ 2011”,“ 2010”,“ 2009”等。让“ 20”是一个命名特定类别的ID。

    course.

    课程。

    The following shortcode would list all the children of Years, and the linked names would point only to posts or pages that had been categorized as belonging to the course in a give year.

    以下短代码将列出Years的所有子级,并且链接的名称将仅指向在给定年份中已归为该课程的帖子或页面。

    [crosscat child_of=”10″ intersector=”20″]

    [crosscat child_of =” 10” intersector =” 20”]

    The listing will show the number of results for each cross categorization, and links that do not find any results are semi-transparent.

    该列表将显示每个交叉分类的结果数,而未找到任何结果的链接是半透明的。

    List category posts

    列出类别帖子

    User the shortcode:

    用户输入简码:

    [category-posts]

    [类别帖子]

    to list on a page or post all the posts or pages belonging to a particular category (or other taxonomy term).

    在页面上列出或发布属于特定类别(或其他分类术语)的所有帖子或页面。

    Custom “Attributes” Taxonomy

    自定义“属性”分类法

    The hierarchical custom taxonomy “Attributes” applies to Pages as well as Posts.

    层次结构自定义分类法“属性”适用于页面和帖子。

    Activated it in the “Catwalker Options” section on the “Settings > Writing” page, where you can also opt to make “Attributes” the default taxonomy for CatWalker functions.

    在“设置>编写”页面的“猫行者选项”部分中将其激活,您还可以选择将“属性”设置为CatWalker功能的默认分类法。

    Post Attributes Listing

    发布属性列表

    If you are using the custom Attributes taxonomy, you may want to include a list of Attributes assigned to a given post or page at the end of that post or page.

    如果您使用自定义属性分类法,则可能需要在该帖子或页面的末尾包括分配给给定帖子或页面的属性列表。

    Many themes offer similar lists of tags and categories, but because these lists are typically theme-specific, it is not possible to provide a theme-generic solution.

    许多主题提供相似的标签和类别列表,但是由于这些列表通常是特定于主题的,因此无法提供主题通用的解决方案。

    On the other hand, you can improve your chances by setting a CSS class for the attributes listing so that it will be styled similarly to the category listing in your theme.

    另一方面,您可以通过为属性列表设置CSS类来提高机会,使其样式类似于主题中的类别列表。

    You can set both of these options on the Settings > Writing page in the CatWalker Options settings.

    您可以在CatWalker选项设置的“设置”>“编写”页面上设置这两个选项。

    Related Posts Listing

    相关帖子列表

    You can automatically add a list of related posts or pages to the end of every post or page by checking the appropriate box on the Settings > Writing page.

    您可以通过在“设置”>“写作”页面上选中相应的框,将相关帖子或页面的列表自动添加到每个帖子或页面的末尾。

    You can designate specific categories or attributes to be included, you can specify categories or attributes whose child-terms will be included, or you can leave those inputs blank to list related posts for all terms.

    您可以指定要包括的特定类别或属性,可以指定将包含子术语的类别或属性,或者可以将这些输入留空以列出所有术语的相关帖子。

    In a similar way, you can list terms for which to include no related-posts lists.

    以类似的方式,您可以列出不包含相关帖子列表的术语。

    The automated related-posts listing will operate only on your CatWalker default taxonomy.

    自动化的相关职位列表将仅在您的CatWalker默认分类法上运行。

    Custom order and limit on Category Pages

    自定义订单和类别页面上的限制

    (Currently available only for Categories and not for the custom Attributes taxonomy.) Go to the “Catwalker Options” section of the “Settings > Writing” page.

    (当前仅适用于类别,不适用于自定义属性分类法。)转到“设置>编写”页面的“ Catwalker选项”部分。

    Check the box to use a custom ordering and choose your preferences from the drop-down menus.

    选中该框以使用自定义顺序,然后从下拉菜单中选择您的首选项。

    You can sort by date or title, ascending or descending.

    您可以按日期或标题(升序或降序)排序。

    You can also choose a custom number of posts to display on category archive pages.

    您还可以选择自定义数量的帖子,以显示在类别存档页面上。

安装步骤

To install this plugin manually:

要手动安装此插件:

    1. Download the zipped plugin
    2. 下载压缩插件

    3. Unzip it and put the folder in your wp-contents/plugins folder
    4. 将其解压缩并将其放在您的wp-contents / plugins文件夹中

下载地址
https://downloads.wordpress.org/plugin/catwalker.1.3.1.zip
-EOF-

AI助手支持GPT4.0