文章归档

为 WordPress 评论添加楼层显示

comments.php

<?php if ( have_comments() ) : ?>或是<?php if ( $comments ) : ?> <?php global $comment_ids; $comment_ids = array(); foreach ( $comments as $comment ) {

阅读全文——共832字

在 WordPress 后台显示日志浏览数

来自于我爱水煮鱼的插件

下载已删除,最新版的插件已经集成此功能

WordPress 您的足迹 功能

add this plugin:cos_visitor_comment

OR

<?php if($_COOKIE["comment_author_" . COOKIEHASH]!=""){

阅读全文——共2132字

WordPress 读者墙

<ul class="ffox_most_active"> <?php $limit_num = '16'; $noneurl = get_bloginfo ('url'); $my_email = "'" . get_bloginfo ('admin_email') . "'";

阅读全文——共2580字

改变默认的 Gravatar 头像

很多同学都没设置Gravatar头像,没有Gravatar头像留言后显示的图片很丑陋,于是搜索了下,找到了这个方法,可以自定义Gravatar 默认头像图片。

在functions.php添加下面的代码就可以了,$myavatar填写图片地址

add_filter( 'avatar_defaults', 'newgravatar' );

function newgravatar ($avatar_defaults) {
$myavatar = 'http://s.014.cc/x.jpg';
$avatar_defaults[$myavatar] = “Dianso”
return $avatar_defaults;
}

然后去这里选择确认即可

Gravatar

-------------------0806
今天看到万戈博客上写的用get_avatar来实现

&amp;amp;lt;?php echo get_avatar($comment,$size='48',$default='http://s.014.cc/x.jpg'); ?&amp;amp;gt;

只要把 $default 定义为需要默认头像的链接就可以了
----------------------------------------------------

话说植物大战僵尸2010已经出来了,破解版也有了,下载地址在这里:

http://u.115.com/file/f1cc21f88a

无觅相关文章插件,快速提升流量