Get Recent Comments を入れてみた
公開日: 2007年5月18日金曜日 plugins WordPress
» WordPress Plugin: Get Recent Commentssidebar に記述するコードを wp.Vicuna 用に対応。
ドキュメントでは sidebar に記述するコードは以下。
<?php if (function_exists('get_recent_comments')) { ?>
<li><h2><?php _e('Recent Comments:'); ?></h2>
<ul>
<?php get_recent_comments(); ?>
</ul>
</li>
<?php } ?>
<?php if (function_exists('get_recent_trackbacks')) { ?>
<li><h2><?php _e('Recent Trackbacks:'); ?></h2>
<ul>
<?php get_recent_trackbacks(); ?>
</ul>
</li>
<?php } ?>
wp.Vicuna は、この形式じゃないのでちょっと対応。
<?php if (function_exists('get_recent_comments')) { ?>
<dt><?php _e('Recent Comments'); ?></dt>
<dd>
<ul>
<?php get_recent_comments(); ?>
</ul>
</dd>
<?php } ?>
<?php if (function_exists('get_recent_trackbacks')) { ?>
<dt><?php _e('Recent Trackbacks'); ?></dt>
<dd>
<ul>
<?php get_recent_trackbacks(); ?>
</ul>
</dd>
<?php } ?>
WordPress のテンプレートのデフォルト(?)のように <ul> でやるほうがいいのかなー。
とりあえず、wp.Vicuna の<dt><dd>のやり方で対応。
で、「各種設定」-「Recent Comments」で、設定をして完了。
日付や時間のフォーマットをこのブログに合わせるやり方がわからなくて、結局 get-recent-comments.php をいじってしまった・・・。
こんなやり方でいいのかな・・・。
[2007.05.18 追記]
Recent Comments 、Recent Trackbacks 表示のプラグインを変更。
こっちにしてみた。
やっぱり Commented entry list 1.2 に...
0 件のコメント :
コメントを投稿