推荐插件:WP-RecentComments 1.2

简介:
在侧边栏中显示最新的评论, 此版本支持 Widget.

更新:
Version 1.2 [2008/05/15]
1. 改, 自动向页面添加样式.
2. 增, 追加支持 Widget.

安装:
1. 将压缩包解压到 /wp-content/plugins/.
2. 登录你的 WordPress 后台, 到 Plugins 页面激活插件 WP-RecentComments.
3. 这里有两种添加方法:
(1) 到 Design -> Widget, 将控件 WP-RecentComments 添加到你的侧边栏.
(2) 打开 sidebar.php, 在适当位置追加以下代码:

<h3>最新评论</h3>
<ul><?php get_recentcomments(); ?></ul>

参数:

limit: 整数, 显示最新评论的数量. (defalue: 5)

length: 整数, 每个评论显示的字符长度. (defalue: 50)

post: true 或 false, true: 显示文章标题. (defalue: true)

pingback: true 或 false, true: 显示反连接类型的评论. (defalue: true)

avatar: true 或 false, true: 显示评论者的头像. (defalue: false)

avator_size: 整数, 头像的长和宽. (defalue: 32)

avatar_position: left 或 right, 头像的显示位置. (defalue: left)

如果是手动添加, 你可以通过上面的参数改变最新评论的显示方式, 例如:

<?php get_recentcomments(’limit=10&length=20&post=false‘); ?>
<?php get_recentcomments(’pingback=flase‘); ?>
<?php get_recentcomments(’avatar=true&avatar_size=16&avatar_position=right‘); ?>

插件下载: WP-RecentComments 1.2   :lol:
本插件由MG12开发,本文引用自作者站点。原文地址:http://www.fighton.cn/wp-recentcomments-12/

效果展示见本博客右侧边栏…

Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.

Comments

您好! 谢谢推荐此插件.
这篇文章是引用自 mg12’s Blog, 本人已对文章的共享方式作出了声明, 请参照 署名-非商业性使用-相同方式共享 3.0.

请您为这篇文章保留署名和链接, 或者将其删除, 谢谢合作.

[Reply]

抱歉了,忘记添加,没有占为己有的意思,非常抱歉,已经添加。请查看。好东西大家用,所以就不删除了。 :eek:

[Reply]

:D 非常感谢!

[Reply]

是我该谢谢你,这么客气,受不了了。。

[Reply]

发表评论

(必填)

(必填)