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

wordpress 插件 文章 2020-04-08 05:30 462 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

The Custom Field Widget displays values of custom field keys, allowing post- and page-specific meta sidebar content with limitless applications.

“自定义字段”小组件显示自定义字段键的值,从而允许使用无限的应用程序来显示特定于帖子和页面的元侧边栏内容。

Custom Field Widget is for WordPress 2.6.x and features:

自定义字段小部件适用于WordPress 2.6.x,具有以下功能:

    • Multiple widget instances possible
    • 可能有多个小部件实例

    • Widget-specific optional title and text
    • 特定于窗口小部件的可选标题和文本

    • Conditional functionality, i.e., without a matching key, the widget is not displayed
    • 有条件的功能,即没有匹配的键,则不会显示小部件

    • Practically unlimited possible uses
    • 实际上无限的可能用途

    Use

    使用

    If you are unfamiliar with custom fields, you should first read about them on the WordPress Codex.

    “> WordPress Codex 。

    Custom fields are added to posts and pages from the Write > Page and Write > Post menus, just below the main editor area.

    自定义字段从主编辑器区域下方的写入>页面写入>发布菜单添加到帖子和页面。

    You may add as many custom fields to a post/page as you like.

    您可以根据需要在帖子/页面中添加任意数量的自定义字段。

    There are two separate fields for each custom field: the key and its value.

    每个自定义字段都有两个单独的字段: key 和其 value

    The Custom Field Widget finds a specified key and then displays its corresponding value in the sidebar.

    “自定义字段”小部件会找到指定的,然后在边栏中显示其对应的 value

    Without a matching key, nothing is displayed.

    没有匹配的 key ,则不会显示任何内容。

    The Custom Field Widget doesn’t necessarily ‘do’ anything, but it enables an advanced (and often overlooked) feature built-in to WordPress.

    “自定义字段”小部件不一定要做任何事情,但是可以启用WordPress内置的高级(通常被忽略)功能。

    For example, see 28 Ways to Use WordPress Custom Fields for a small picture of possibilities.

    使用WordPress自定义字段” rel =“ nofollow”> 28种使用WordPress自定义字段的方法,以一小幅可能性。

    I developed this plugin for my own use.

    我开发了这个插件供自己使用。

    I wanted to display a small table of contents for certain pages (which are without categories) in the sidebar dynamically.

    我想在侧栏中动态显示某些页面(没有类别)的小型目录。

    Without a widget, I would have to edit the sidebar file(s) for each theme I used.

    如果没有小部件,则必须为我使用的每个主题编辑侧边栏文件。

    Because each table of contents (a short ol of items) varied from page to page, it also had to be specific to each page.

    由于每个目录(每个项目的简短 ol )在页面之间都是不同的,因此它也必须特定于每个页面。

    So I created a custom field key of toc and added the ol of items to its value.

    因此,我创建了 toc 的自定义字段键,并将项目的 ol 添加到其值中。

    Enabling the plugin, I had a table of contents appear in the sidebar for each page with a custom field key of toc.

    启用该插件后,我在每个页面的侧边栏中都有一个目录,其中的自定义字段键为 toc

    The uses and applications of WordPress custom fields are infinite.

    WordPress自定义字段的用途和应用是无限的。

    Just search for WordPress custom fields

    只需搜索WordPress自定义字段

    > for thousands of results on this subject.

    >获得有关该主题的数千个结果。

    License

    许可证

    Custom Field Widget, a plugin for WordPress, (C) 2008 by Scott Allan Wallick, is licensed under the GNU General Public License.

    通用公共许可证” rel =“ nofollow”> GNU通用公共许可证。

    Custom Field Widget is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any

    Custom Field Widget是免费软件:您可以根据自由软件基金会发布的GNU通用公共许可证的条款(许可证的版本3)或(根据您的选择)任意地重新分发和/或修改它。

    later version.

    更高版本。

    Custom Field Widget is distributed in the hope that it will be useful, but without any warranty;

    分发了

    自定义字段Widget,希望它会有用,但没有任何保证

    without even the implied warranty of merchantability or fitness for a particular purpose.

    甚至没有可商购针对特定用途的适用性的暗示保证。

    See the GNU General Public License for more details.

    有关更多详细信息,请参见GNU通用公共许可证。

    You should have received a copy of the GNU General Public License along with Custom Field Widget.

    您应该已经收到了GNU通用公共许可证以及“自定义字段小部件”的副本。

    If not, see http://www.gnu.org/licenses/

    如果不是,请参见http://www.gnu.org/licenses/

    a>.

    a>。

安装步骤

This plugin is installed just like any other WordPress plugin.

此插件的安装与其他任何WordPress插件一样。

More detailed installation instructions are available on the WordPress Codex.<

更多详细的安装说明在WordPress Codex上可用。

/p>

/ p>

    1. Download Custom Field Widget
    2. 下载自定义字段小部件

    3. Extract the /custom-field-widget/ folder from the archive
    4. 从存档中提取 / custom-field-widget / 文件夹

    5. Upload this folder to ../wp-contents/plugins/
    6. 将此文件夹上传到 ../ wp-contents / plugins /

    7. Activate the plugin in Dashboard > Plugins
    8. 仪表板>插件 中激活插件

    9. Customize from the Design > Widgets menu
    10. 设计>窗口小部件菜单进行自定义

    11. Enjoy.

    12. 享受。

      And then consider donating

    13. 然后考虑捐赠

    In other words, just upload the /custom-field-widget/ folder and its contents to your plugins folder.

    换句话说,只需将 / custom-field-widget / 文件夹及其内容上载到您的plugins文件夹中即可。

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

AI助手支持GPT4.0