关于显示“相关文章”的 WordPress 插件我之前用过的有两个,一个是我爱水煮鱼的WordPress Related Posts,另外一个是老外的 Similar Post,
本文就介绍一个和这两个插件平分秋色的另一个插件YARPP——即 Yet Another Related Posts Plugin。
这个插件我猜是中外合作的,因为三个作者中有一个叫做“芳贵”的。
YARPP 是根据标题、正文、标签和分类这四个内容来挑选“相关文章”的,这个功能和 Similar Post 的类似。,而 WordPress Related Posts 就只是根据标签来选择相关文章。
WordPress Related Posts 可以在 Feed 中显示相关文章,而 Similar Post 不行,但是 YARPP 也可以在 Feed 中显示相关文章。
可以说,YARPP 把 WordPress Related Posts 和 Similar Post 这两个插件的功能整合起来了,另外,YARPP 还可以在每个相关文章的后面显示文章摘要,数字可以自己选择。
精博刚刚用上了 YARPP,您可以看看效果。
另外,精博在安装 YARPP 的时候,出现以下错误:
Your database’s wp_posts table is not set up to use the MyISAM storage engine which is required for YARPP to use the “consider titles” and “consider bodies” criteria. These two options have been disabled.
To restore these features, please update your wp_posts by executing the following SQL directive: ALTER TABLE `wp_posts` ENGINE = MyISAM; . No data will be erased by altering the table’s engine, although there are performance implications.
意思大概是要把表“wp_posts”里面的“ENGINE”设置为“MyISAM” ,但是登录 phpMyAdmin 后发现“Storage Engine”选的就是“MyISAM”,如下图:

虽然提示错误,但是并不影响使用。
Young 对这个问题百思不得其解,如果您知道是什么原因,希望不吝赐教。
相关博文:

这个插件容易安装吗,我装了一个不太会用,可不可以在线指导一下
- spam
- offensive
- disagree
- off topic
Like