自制WordPress插件:Nofollow Internal Links

作者: Jeriff Cheng 时间: 2011/07/16

分类: WordPress

笔者在【2011年6月27日下午Google PR更新—本博客由0升到3】一文中指出:

首页不重要的内链设为nofollow在首页给不重要的内部链接添加nofollow属性,防止首页PR向内页大量输送。以侧边栏为例:分类、标签都nofollow了,唯有最近文章是 follow的。结果好几篇文章PR=1,而标签页面,分类页面,均为0。这充分说明了:通过nofollow内部链接,可以达到有目地分配网站PR的作用

想必很多看过这篇文章的同学都会纳闷:分类、归档、标签云链接是怎么nofollow了啊?为此,笔者制作了平生第一个WordPress插件:Nofollow Internal Links,顾名思义:给内链添加nofollow属性。这里的“内链”包括:

  • 侧边栏的Widget内的链接:标签云Widget、归档Widget、分类Widget(系统内置的Widget。对第三方插件实现的相关Widget不一定有效)
  • 文章/页面内通过系统内置函数调用的 标签、归档、分类链接(如:本站的站点地图页面)
  • 其他一些无用的链接:(Read more阅读全文链接、文章标签链接、文章评论计数链接)

Nofollow Internal Links

Add the "nofollow" rel attribute to unimportant internal link,including: read more, tag cloud links, categories, archive links,author post_link and comments popup link.

开发文档  | WordPress.org官方页面

支持WordPress版本: 2.6.5-3.2.1

下载地址:WordPress官方


由于是第一次制作插件,水平较低,插件功能比较单一,比较simple。预计在升级版中支持用户自定义想nofollow的内链。欢迎大家下载使用,遇到Bug请到开发文档 页面提交,如果觉得插件不错,请帮忙宣传一下。

您可能也喜欢这些文章:

    分享(Share):

{ 6 Comments }

ultrasonic jewelry cleaner 2012/06/27 00:11

I was suggested this blog by my cousin. I am not sure whether this post is written by him as no one else know such detailed about my trouble. You’re amazing! Thanks!

ultrasonic generator pcb 2012/06/26 23:49

I do consider all of the ideas you have presented for your post. They’re really convincing and will definitely work. Still, the posts are too quick for starters. May just you please extend them a little from next time? Thank you for the post.

adiemusy 2011/07/22 16:52

这个插件,安装试用了一下,感觉是,呃~有够野蛮生长的,首页的边栏除了文章几乎全都nofollow了,有很多和自己定义的也会重复,最好能提供一下选项.不过还是支持一个!

Jeriff Cheng 2011/07/23 13:53

呵呵,在下一个版本中会提供选项,现在还很简陋。nofollow掉的都是一些不重要的链接,确保首页获得尽可能高的PR。

Terry Chen 2011/07/16 10:00

这个必须支持啊!

Jeriff Cheng 2011/07/20 11:17

呵呵,刚开始学做插件,都很simple

前一篇文章:

后一篇文章: