[wordpress插件] DMG Categories WidgetDMG分类小部件

wordpress 插件 文章 2020-04-20 10:21 384 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Display categories as a list of links or a dropdown jump-menu (automatically navigate to page when selected).

将类别显示为链接列表或下拉菜单(选择时自动导航至页面)。

Includes advanced options to change the taxonomy, display post counts and the category hierarchy, change how they are ordered, add CSS styles and modify the title.

包括高级选项,可用于更改分类,显示帖子计数和类别层次结构,更改其排序方式,添加CSS样式并修改标题。

Replaces the built in Categories Widget (WP_Widget_Categories).

替换内置的类别小部件(WP_Widget_Categories)。

A hook is available to filter the title: dmg_categories_widget_title.

可以使用钩子来过滤标题: dmg_categories_widget_title

For example, to change the title on a single page or post, you could add this to your functions.php file:

例如,要在单个页面或帖子上更改标题,可以将其添加到functions.php文件中:

function myTitleFilter( $title ) {     if( is_singular() )     {         return "$title";

  function myTitleFilter($ title){if(is_singular()){返回“  $ title ”; 

} else { return $title;    

} else {返回$ title;    

} } add_filter( 'dmg_categories_widget_title' , 'myTitleFilter');

}} add_filter('dmg_categories_widget_title','myTitleFilter');

More information about this plugin can be found at http://dancoded.com/wordpress-

有关此插件的更多信息,请访问 http://dancoded.com/wordpress-

plugins/categories-widget/.

插件/类别小工具/ 。

安装步骤

    1. Upload the plugin files to the /wp-content/plugins/dmg-categories-widget directory, or install the plugin through the WordPress plugins screen directly.
    2. 将插件文件上传到 / wp-content / plugins / dmg-categories-widget 目录,或直接通过WordPress插件屏幕安装插件。

    3. Activate the plugin through the ‘Plugins’ page in the WordPress admin area
    4. 通过WordPress管理区域中的“插件”页面激活插件

    5. Drag onto any active sidebar on the ‘Appearance > Widgets’ page
    6. 拖动到“外观>小部件”页面上任何活动的侧边栏上

下载地址
https://downloads.wordpress.org/plugin/dmg-categories-widget.1.0.zip
-EOF-

AI助手支持GPT4.0