这个插件提供
AJAX 方式在发表评论、确认、翻页等!
下载地址:点击下载该插件
插件的安装:
1.上传 YAAPC 到 `/wp-content/plugins/` 目录!
2.在 ‘Plugins’ 菜单下激活该插件。
3.(可选择的,但是推荐这样做)修改你的评论模板(comments.php),添加一个 div 标签 id=”yaapc-comments” 把< ?php yaapc_pages()?>` 放到你想显示的地方去.看下面的例子。
4.修改样式表style.css 在YAAPC 目录自定义YAAPC的外观
修改comments.php的一个例子
... ... <!-- You can start editing here. --> <div id="yaapc-comments"> <?php if ($comments) : ?> <h3 id="comments"><?php the_title();</h3> <?php yaapc_pages()?> <ol class="commentlist"> <?php foreach ($comments as $comment) : ?> ... ... <?php endforeach; /* end for each comment */ ?> </ol> <?php yaapc_pages()?> <?php else : // this is displayed if there are no comments so far ?> <?php if ('open' == $post->comment_status) : ?> <!-- If comments are open, but there are no comments. --> <?php else : // comments are closed ?> <!-- If comments are closed. --> <p class="nocomments">Comments are closed.</p> <?php endif; ?> <?php endif; ?> </div> ... ...
我在卡那可能效果
[Reply]