[wordpress插件] DMG Post Archives WidgetDMG Post Archives小部件

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

AI助手支持GPT4.0

评分
0
描述

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

将每月存档显示为链接列表或下拉菜单(选择后自动导航至页面)。

Includes advanced options to display post counts, add CSS styles and modify the title.

包括高级选项以显示帖子数,添加CSS样式和修改标题。

Replaces the built in Archives Widget (WP_Widget_Archives).

替换内置的Archives Widget(WP_Widget_Archives)。

A hook is available to filter the title: dmg_archives_widget_title.

可以使用钩子来过滤标题: dmg_archives_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_archives_widget_title' , 'myTitleFilter');

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

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

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

plugins/archives-widget/.

plugins / archives-widget / 。

安装步骤

    1. Upload the plugin files to the /wp-content/plugins/dmg-archives-widget directory, or install the plugin through the WordPress plugins screen directly.
    2. 将插件文件上传到 / wp-content / plugins / dmg-archives-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-archives-widget.1.0.zip
-EOF-

AI助手支持GPT4.0