[wordpress插件] Custom Field List Widget自定义字段列表小部件

wordpress 插件 文章 2020-04-08 04:00 473 0 全屏看文

AI助手支持GPT4.0

评分
60
描述

This plugin creates sidebar widgets with lists of the values of custom fields.

此插件创建带有自定义字段值列表的边栏小部件。

The listed values can be (hyper-)linked in different ways.

列出的值可以通过不同的方式(超)链接。

One possibility is to create a list of all values of a custom field, which will be groupped by their post (or page) and (hyper-)linked automatically to this post (or page).

一种可能性是创建一个自定义字段的所有值的列表,该列表将按其帖子(或页面)分组,并自动(超链接)到该帖子(或页面)。

Another possibility is that you can create a list of all unique values of a custom field and specify links as you like (or not).

另一种可能性是,您可以创建一个自定义字段的所有唯一值的列表,并根据需要指定链接(或不指定)。

In other words: This plugin allows you to create lists of one category of meta information (on each list).

换句话说:此插件允许您创建一个类别的元信息列表(在每个列表上)。

The custom field names and values can be used as categorizable tags and with this plugin you can create lists of tags of one category.

自定义字段名称和值可以用作可分类的标签,并且通过此插件,您可以创建一个类别的标签列表。

One example of usage could be: a list of the names of the guest of your podcast episodes.

用法的一个示例可能是:您的播客剧集的来宾姓名列表。

Or if you write about books hten you can have e.g.

或者,如果您撰写有关书籍的文章,那么您可以

a list of the authors and as sub list elements the titles of the books linked to the posts containing the recension.

一个作者列表和作为子列表元素的与包含该修订版本的帖子链接的书籍的标题。

This plugin supports multiple widgets (You can have more than one list at the same time in one sidebar.) and uses the jQuery framework (which is delivered with WP automatically) to make the hide and show effects e.g.

此插件支持多个小部件(您可以在一个侧边栏中同时拥有多个列表。)并使用jQuery框架(WP随附的jQuery框架)进行隐藏和显示效果,例如

of a parted list (if the browser of a visiter of your does not allow or support Javascript the full list will be visible).

部分列表(如果您访问者的浏览器不允许或不支持Javascript,则将显示完整列表)。

Available in the languages:

可用的语言:

    If like to translate this plugin into your language or if you like to continue the existing translations then you are very welcome.

    如果想将此插件翻译成您的语言,或者想要继续现有的翻译,欢迎您。

    Contact me and I will help you with the first steps.

    与我联系,我将为您提供第一步。

    Usage

    用法

    Lists with more than one hierarchy level

    具有多个层次结构级别的列表

    (since v0.9.5)

    (自v0.9.5起)

    You can define several custom field names for a post.

    您可以为帖子定义几个自定义字段名称。

    The values of these custom field names will be taken from the data base like they were arranged in columns side by side.

    这些自定义字段名称的值将从数据库中获取,就像它们并排​​排列在列中一样。

    All the values will be sorted by one of these columns.

    所有值将按这些列之一排序。

    You can choose which column resp.

    您可以选择相应的列。

    custom field name should be the sort criterion.

    自定义字段名称应为排序条件。

    Further it is possible to hide this column (which should be decisive for the sorting) in the list in the sidebar.

    此外,可以在侧边栏中的列表中隐藏此列(对排序起决定性作用)。

    Example:

    示例:

    An easy to understand example is probably a list of posts which are categorized by special dates.

    一个容易理解的示例可能是按特殊日期分类的帖子列表。

    In this example the custom field names are “realdate” and “datename”.

    在此示例中,自定义字段名称为“ realdate”和“ datename”。

    As “realdate” you set good sortable text strings or numbers like 20091005 (consists of year, month, day) and as “datename” you can set e.g.

    作为“实时”,您可以设置良好的可排序文本字符串或数字,例如20091005(由年,月,日组成);作为“日期名”,您可以设置例如

    “October 2009” which is probably not in the same way sortable as the numbers.

    “ 2009年10月”的排序方式可能与数字排序不同。

    This way you can of course build probably more useful lists.

    这样,您当然可以构建可能更有用的列表。

    A more colourful case of use which works this way is probably if you make list of posts grouped by a none-Gregorian calendar.

    如果按非格里高利历分类的帖子列表,则更有效的使用情况可能就是这种方式。

    You can use as datenames e.g.

    您可以将其用作日期名称,例如

    names of months and years of the Chinese calendar.

    中国日历的月份和年份的名称。

    In this example the “datenname”s would be the main list elements and the post titles sub elements of them.

    在此示例中,“ datenname”将是它们的主要列表元素以及其子标题。

    The “realdate” would be hidden via the option “hide this”.

    通过选项“隐藏此”可以隐藏“实时”。

    If you want to create a more sub-divided list (instead of “datename” something like “year”, “month”, “day”) then you should keep an eye on the right hierarchy order.

    如果要创建更细分的列表(而不是“日期名称”(例如“ year”,“ month”,“ day”),则应注意正确的层次结构顺序。

    (e.g. 0. “realdate” (sort by / hide this), 1. “year”, 2. “month”, 3. “day”).

    (例如0.“ realdate”(按/隐藏),1。“ year”,2。“ month”,3。“ day”)。

    The post titles will be sub elements of “day” and “day” will be sub elements of the months and so on – in the list in the side bar widget.

    帖子标题将是“天”的子元素,“天”将是月的子元素,依此类推–在侧栏小部件的列表中。

    (But for this special case there other plugins like Collapsing Archives)

    (但对于这种特殊情况,还有其他插件,例如 Collapsing Archives

    Other and even better examples (in English) are the book lists at the weblog

    其他甚至更好的示例(英语)是网络日志上的书单

    of Larry Wilson.

    拉里·威尔逊(Larry Wilson)的故事。

    He makes list of the books he has read.

    他列出了他读过的书。

    There are some basic things you should be aware of:

    您应该注意一些基本的事情:

    * Overall you can use 5 hierarchical levels (if you want to have more then write me an email).

    *总体来说,您可以使用5个层次级别(如果您想拥有更多层次,请给我写一封电子邮件)。

    * Every post you want to have in the sidebar list should have the same custom field names (The custom field values can differ from post to post.)

    *您要在侧边栏列表中拥有的每个帖子都应具有相同的自定义字段名称(自定义字段的值可能因帖子而异。)

    * The custom field name which should be excluded from the list should be the first or the last in the list on the widgets page (on the admin site).

    *应该从列表中排除的自定义字段名称应该是窗口小部件页面(在管理站点上)列表中的第一个或最后一个。

    Usage of the sorting option “sorting values by the last word”

    使用排序选项“按最后一个单词对值进行排序”

    (since v0.7)

    (自v0.7起)

    You can influence which word the last word is by using a underline character between the words.

    通过在单词之间使用下划线字符,可以影响最后一个单词是哪个单词。

    If you make a underline character between two words it will be seen as one word.

    如果您在两个单词之间添加下划线字符,它将被视为一个单词。

    Example:

    示例:

    names with more than one first and family name

     具有多个名字的姓氏和姓氏

    Jon Jake Stewart Brown

    乔恩·杰克·斯图尔特·布朗

    the last word is Brown

    最后一个词是布朗

    Jon Jake Stewart_Brown

    乔恩·杰克·斯图尔特_布朗

    the last word is "Stewart Brown"

    最后一个字是“ Stewart Brown”

    The underline character will not displayed in the sidebar.

    下划线字符不会显示在侧栏中。

    Changing the appearance of the lists

    更改列表的外观

    Since v1.0 all click-able drop down menu elements have the class “customfieldlist_opt_link” so you can adapt the appearance of these elements easier.

    从v1.0开始,所有可单击的下拉菜单元素都具有“ customfieldlist_opt_link”类,因此您可以更轻松地调整这些元素的外观。

    The speed of the show/hide effects and the hide/show characters are changeable via the settings page of the plugin.

    通过插件的设置页面可以更改显示/隐藏效果和隐藏/显示字符的速度。

    The settings on this page are for all the widgets of this plugin.

    此页面上的设置适用于此插件的所有小部件。

    Deinstallation

    卸载

      1. Deactivate the plugin.
      2. 停用插件。

      3. Delete the folders and files of the plugin via the Dashboard of your blog or FTP or etc.(don’t forget the file from the K2 theme folder if you have used that).

      4. 通过博客的控制台或FTP或其他方式删除插件的文件夹和文件。(如果使用过K2主题文件夹,请不要忘记文件)。

        Only deleting the plugin via the WP Dashboard will remove the options from the database.

      5. 仅通过WP Dashboard删除插件会从数据库中删除选项。

安装步骤

    1. Put the files and the folders from the .zip-file into a separate sub folder below the main plugins folder of your weblog.

      将.zip文件中的文件和文件夹放入Weblog主plugins文件夹下的单独子文件夹中。

      The files should be stored in a path like this:

      文件应存储在这样的路径中:

        • /wp-content/plugins/widget_custom_field_list/
        • / wp-content / plugins / widget_custom_field_list /

        • custom_field_list_k2_widget.php (move this file into the /app/modules/-folder (eg: /wp-content/themes/k2/app/modules/) of the K2-theme if you are using the K2 theme with the

        • custom_field_list_k2_widget.php(如果将此K2主题与K2主题一起使用,请将其移至K2主题的/ app / modules / -folder(例如:/ wp-content / themes / k2 / app / modules /)中。

          old sidebar manager or the comparable plugin)

        • 旧的侧边栏管理器或类似的插件)

      • Since WP 2.7 you can upload the .zip-file at once and the files will be put in the right place automatically – except for the K2 theme file.

        从WP 2.7开始,您可以一次上传.zip文件,并且文件会自动放置在正确的位置-K2主题文件除外。

      • Activate the plugin.
      • 激活插件。

下载地址
https://downloads.wordpress.org/plugin/custom-field-list-widget.1.3.zip
-EOF-

AI助手支持GPT4.0