Mon 29 May 2006
早上達人介紹一篇文章《11 Essential Wordpress Plugins》,裡面介紹了十一個plugins。當中最令我感興趣的就是 Related post 這一個。看起來是會幫你找出相關的文章。
按照網頁上的說明安裝,還滿簡單的:
- 下載
- 解壓縮到 wp-content\plugins 下(related-posts.php最好放在 wp-content\plugins 下)
- active plugin
- 這時候會在plugin那個頁面上方看到 Related Posts Options ,點選在下方會有可以執行 script 的連接。

但是因為執行它的script失敗,結果只好手動處理。
按照 readme-first.txt 說明上寫的,要在 mysql 手動執行下列的指令:
ALTER TABLE `wp_posts` ADD FULLTEXT `post_related` (
`post_name` ,
`post_content`
)
不過卻遇到這種 Error:
The used table type doesn’t support FULLTEXT indexes
根據作者的說法是TABLE TYPE錯誤的關係,應該要設定成 MyISAM。看起來是這樣子,可是我自己打,就是不成功:
ALTER TABLE `wp_posts` ADD FULLTEXT `post_related` (
`post_name` ,
`post_content`
) TYPE=MyISAM;
後來根據這一篇《need help in getting my table to support FULLTEXT》上面的建議,用 PHPMyAdmin 選 wp_posts table ,然後點 Operations,找 Table Type把它選成 MyISAM。這樣 Table Type 就設定成 MyISAM了。
然後再重新執行原來的手動指令。It’s work!
再來就找 The Loop 的地方,把這行
<?php related_posts(); ?>
加進去就可以了。(方法和 pagebar 的方式類似,可以參考 pagebar 的用法)
不過在中文上的效果不太能強求什麼,因為中文的斷詞本來就不是很簡單的事情。
November 14th, 2006 at 7:31 pm
Can anyone give me ideas , i might get free time in the future and want to give it for wordpress …
any idea ?
i want idea from simple thing to mid … 1-2 hours –> 8-10 hours .
post your ideas…
November 18th, 2006 at 12:30 am
Does anyone know the name of the wordpress plugin that creates a list of your posts in a category instead of just displaying them one after the other? I want it so that when someone clicks on a category they just get a list of posts from that category.
I'm sure Ive seen one…and sifting through the WP site is a nightmare
December 13th, 2006 at 4:45 am
What I want to do on my blog, is every few hours take the oldest post and move it to the
front of the queue, all automatically. Anyone know if there is a plugin that can do this or
a simple way to set up another plugin to do this (use my own feed perhaps)?
Thanks.
April 28th, 2007 at 6:13 am
嗨,
請問版主,我已經設定了Related Post在我的網站裡,為什麼無法找到我的其他Post呢?
請參考:
http://www.fit-health-life.com/archives/10
“No Related Post”
版主可知道如何解決些問題?
謝謝。
April 28th, 2007 at 10:57 am
先說答案:在下也不知道如何解決。
竊以為這是中文的問題。雖然在網路上看過有人說可以把你想要的關鍵字左右加以空白,或是修改程式多加入斷開的符號,不過根據自己使用的經驗,還是以英文作為關鍵字的效果比較好。
至於自訂關鍵字,自己試了多次也不見什麼效果。加上沒去追看原始碼,綠島這,就先放著了 :p