[wordpress插件] Ambrosite Post Formats WidgetAmbrosite Post Formats小部件

wordpress 插件 文章 2020-02-17 14:40 515 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Post Formats are a theme feature introduced in WordPress version 3.1.

帖子格式是WordPress 3.1版中引入的主题功能。

This plugin creates a simple widget that lets you place a list or dropdown of post formats in your sidebar.

此插件创建了一个简单的小部件,可让您在边栏中放置帖子格式的列表或下拉列表。

It works much the same as the Categories widget.

它的工作原理与“类别”小部件相同。

The Post Formats Widget offers the following options: set a custom widget title, set custom tooltip text, display as a list or as a dropdown, show or hide post counts, show or hide post format ID numbers.

“帖子格式”小部件提供以下选项:设置自定义小部件标题,设置自定义工具提示文本,显示为列表或下拉列表,显示或隐藏帖子计数,显示或隐藏帖子格式ID号。

You must have at least one post assigned to a format other than ‘Standard’ in order for this widget to display anything.

您必须至少将一个帖子分配为“标准”以外的其他格式,此小部件才能显示任何内容。

Note that there is a %format variable you can use in custom tooltip text to output the format name.

请注意,您可以在自定义工具提示文本中使用%format变量来输出格式名称。

Also, the format ID refers to the term_id in the wp_terms table.

同样,格式ID引用wp_terms表中的term_id。

You would not normally want to display the format IDs to your site visitors, however it may be useful to know the IDs during theme development, since Post Formats are just a specialized case of a custom taxonomy.

通常,您不希望向站点访问者显示格式ID,但是在主题开发过程中了解ID可能会很有用,因为邮政格式只是自定义分类法的一种特殊情况。

安装步骤

    • Upload ‘ambrosite-post-formats-widget.php’ to the ‘/wp-content/plugins/’ directory.
    • 将“ ambrosite-post-formats-widget.php”上传到“ / wp-content / plugins /”目录。

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

    • Use the Appearance|Widgets menu to configure the widget and add it to your sidebar.
    • 使用“外观|小部件”菜单来配置小部件并将其添加到侧边栏。

下载地址
https://downloads.wordpress.org/plugin/ambrosite-post-formats-widget.zip
-EOF-

AI助手支持GPT4.0