N $wpdb->posts ON ($wpdb->commentsment_post_ID = $wpdb->posts.ID) WHERE comment_approved = ‘1′ AND comment_type = ‖ AND comment_author != ?郑 永‘ AND post_password = ‖ ORDER BY comment_date_gmt DESC LIMIT 10″; $comments = $wpdb->get_results($sql); $output = $pre_HTML; foreach ($comments as $comment) { $output .= ―\n
‖.get_avatar(get_comment_author_email(?comment_author_email‘), 18). ‖ ID) . ―#comment-‖ . $comment->comment_ID . ―\‖ title=\‖" . $comment->post_title . ‖ 上的评论\‖>‖. strip_tags($comment->comment_author) .‖: ―. strip_tags($comment->com_excerpt) .‖‖; } $output .= $post_HTML; $output = convert_smilies($output); echo $output; ?> 上面代码把 comment_author 的值改成你的 ID,18 是头像大小,10 是评论数量。 8.wordpress 调用网站统计大全 1、日志总数: