Recent Comments Plugin 2.1

打從換了wp1.5版後就沒有最新留言的外掛(預設沒有),今天在hsuyo blog的留言中看到有網友提及,並提出解決方法,所以豆子選擇了裝Recent Comments Plugin 2.1來玩,效果還可以,雖有點不太滿意,但也還過的去。

使用步驟:
1.下載Recent Comments Plugin 2.1
2.將檔案解開並上傳至wp-content/plugins目錄下
3.到後台的管理介面的外掛啟用該模組
4.至目前使用的佈景路徑下修改 sidebar.php 並在適當地方加上
< ?php echo get_recent_comments(10, 1); ?>

ps:
< ?php echo get_recent_comments(5, 7, 4); ?>

Quantity
Specify how many comments to include in the list.
(ie: “the most recent X comments”)

Length
Number of words to include in the excerpt link

MaxCommentsPerPost
This parameter will limit the number of comments to list under each post/thread, so that a thread with a lot of comments does not push another post/thread off the list. Thanks to WhyNot for the suggestion (below)

Note: all parameters are optional, and default to 5 if you do not specify them.

您可能也會喜歡…

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *