讓舊文章曬曬太陽吧!(一)

Lazy Days Cat

網誌寫了一年半多了,雖然不是每天寫,累積下來的文章數目也不少了。有些舊文章如果不拿出來曬曬太陽的話,還真是要發霉了呢! 這裡跟大家分享的是幾個可以套用在 WordPress 的小程式,可以讓一些舊文章可以出來露面一下。

Customizable Post Listings 這個程式除了可以在隨機顯示網誌中某一篇文章 (Random Post) 的標題外,還可顯示最新的文章 (Recent Posts) 和最新有回應的文章 (Recently Commented Posts) 等,相當好用。
下載地址 customizable_post_listings.zip
使用方法 1. 下載後將解壓後的 customizable-post-listings.php 檔上傳到 /wp-content/plugins/
  2. 到後台的管理介面將這個插件啟動
  3. 在使用的主題中加入
<ul><?php c2c_get_random_posts(5); ?></ul>
這個功能。(5) 裡面的數字 5 代表的是預設的隨機顯示的文章數目,你可以任意調整。
This entry was posted in WordPress, 電腦 and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *