標籤讓人生更美好

點播:ときどき雲と話をしよう
主唱:KAN
日期:1992-02-28(POLYDOR K.K.)
現在的 Weblog 系統多半都有提供文章分類的功能,方便閱讀者尋找他們有興趣的文章,其中最主要的分法有兩種:一是按照日期分類,二是按照文章領域分類;可是,有時一篇文章可能橫跨好幾個領域,這時 Tag 就派上用場了。
只要使用過 Del.icio.us 社會性書籤、Flickr 相本、Gmail 信箱,肯定對這種方便的 Tag 愛不釋手。裝好 WordPress 之後,我就想找一個 Tag 的 Plugin,最後選擇簡單又好裝的 Jerome’s Keywords Plugin。它提供了兩個功能:一個是如本文上方的 Tags 顯示,點選某一 Tag 就可連至相關 Tag 的文章列表,另一個是視覺系的 Cloud 顯示 8) 因為我目前文章數量不多,Clouds 看起來有點寂寞,暫時就不使用,等文章多一點再「雲と話をしよう」。
記錄一下這個 Plugin 的裝法
- 至 Jerome’s Keywords Plugin 下載。
- 將 jeromes-keywords.php 上載至 wp-content/plugins 資料夾。
- 至 Plugins 控制台啟動 Jerome’s Keywords。
- 至 Options 控制台更新 Permalinks。
- 這時,發表文章下方就會出現一個輸入 Keywords 的欄位,安裝成功!
- 為了讓 Tag 同時顯示於前台文章裡,必須同時修改所用 Theme 資料夾裡的 index.php 以及 single.php。
- 加入以下程式碼:
- True/False:文章領域分類是否列入 Tags
- Tag:Tags 的連結導向 Localhost
- 滑鼠移至連結上時顯示 View all posts on ChunMin.com for 該當 Tag
<?php the_post_keytags(false, 'tag', 'View all posts on ChunMin.com for '); ?>
References
Actions
Informations
- Author : ChunMin
- Date : 4 September 2006
- Categories : 科技
- Tags : Blog, PHP, Plugin, Programming, WordPress
- Views : 4,317 views
- Link Count : View blog reactions
One Response to “標籤讓人生更美好”
Leave a Reply
You must be logged in to post a comment.




September 30th, 2006 at 12:52 pm
[...] Jerome’s Keywords 1.9之前已安裝這個Plugin(安裝過程),這次啟動Clouds功能。a.下載cosmos.php,上傳至Theme資料夾。b.新增一個Page,Template選擇cosmos即可。 [...]