[wordpress插件] Display Links by Category按类别显示链接

wordpress 插件 文章 2020-04-19 11:41 509 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

This plugin allows users to display their WordPress links by category through custom fields.

此插件允许用户通过自定义字段按类别显示其WordPress链接。

The following gives a step-by-step setup overview:

以下内容提供了逐步的设置概述:

    1. Enable the plugin (check the installation tab)
    2. 启用插件(检查安装选项卡)

    3. Go to the page/post where you’d like to place your links/blogroll
    4. 转到您要放置链接/博客的页面/帖子

    5. Make sure that Custom Fields are visible (on the edit page or post page click on the “Screen Options” in the top right and make sure “Custom Fields” is checked off)
    6. 确保自定义字段可见(在编辑页面或发布页面上,单击右上角的“屏幕选项”,并确保已选中“自定义字段”)

    7. Under CUstom fields click on the enter new link
    8. 在“ CUstom”字段下,单击“输入新链接”

    9. Enter an ID in the “Name” field – the plugin uses the ID “display_links” as a default
    10. 在“名称”字段中输入ID –插件使用ID“ display_links”作为默认值

    11. Enter the category name of the links you’d like to display in the “Value” field
    12. 在“值”字段中输入要显示的链接的类别名称

    13. Click on the “Add Custom Field” button
    14. 点击“添加自定义字段”按钮

    15. Enter the following shortcode into the post content area or the widget area you prefer: [links_by_cat field_id="(ID previously entered in Name field goes here)"]

    16. 在您喜欢的帖子内容区域或小部件区域中输入以下短代码: [links_by_cat field_id =“(先前在“名称”字段中输入的ID在此处”)]

        • Note that if you used “display_links” in the Name field, you do not need to enter the “field_id” parameter in the shortcode and can simply do: [links_by_cat]
        • 请注意,如果您在“名称”字段中使用了“ display_links”,则无需在简码中输入“ field_id”参数,只需执行以下操作即可: [links_by_cat]

    The shortcode also supports many other parameters for ordering and structuring your links.

    简码还支持许多其他参数,用于对链接进行排序和结构化。

    All parameters on the list (except “category”) found on the following page are available: https://codex.wordpress.org/Template_Tags/wp_list_bookmarks#Parameters

    可用在以下页面上的列表中的所有参数(“类别”除外):https://codex.wordpress.org/Template_Tags/wp_list_bookmarks#Parameters

    Other parameter example:

    其他参数示例:

    [links_by_cat orderby="rating"] -- This is an example using the orderby parameter from the list.

      [links_by_cat orderby =“ rating”]-这是一个使用列表中的orderby参数的示例。

    The links will now be ordered by their rating.

    现在将按链接的等级对链接进行排序。

    Added in 1.0.1:

    在1.0.1中添加:

    The ability to display all categories has been added to the shortcode.

    显示所有类别的功能已添加到简码中。

    Simply add:
        

    只需添加:
        

    [links_by_cat display_all]

    [links_by_cat display_all]

    Many bug fixes have also been introduced in version 1.0.1 as well, so please upgrade.

    1.0.1版中也引入了许多错误修复,因此请升级。

    Currently, only one category is supported per Custom Field entry;

    当前,每个“自定义字段”条目仅支持一个类别;

    however, I am looking to update the plugin soon so that it supports multiple categories.

    但是,我希望尽快更新该插件,以便它支持多个类别。

安装步骤

This section describes how to install the plugin and get it working.

本节介绍如何安装插件并使其正常工作。

    1. Upload the “display-links-by-category” folder to the “/wp-content/plugins/” directory
    2. 将“按类别显示链接”文件夹上载到“ / wp-content / plugins /”目录

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

    5. Add new custom fields where needed (full details in “Description” tab)
    6. 在需要的地方添加新的自定义字段(“说明”标签中的完整详细信息)

    7. Use the shortcode in any page, post or widget area where you wish your links to appear
    8. 在您希望链接出现的任何页面,帖子或窗口小部件区域中使用简码

下载地址
https://downloads.wordpress.org/plugin/display-links-by-category.1.0.1.zip
-EOF-

AI助手支持GPT4.0