wordpress Plugin:Automatic Tag to Link

Written on August 19, 2008 – 3:53 pm | by 陈炬 | 1,528 views

Introduction:

This plugin will automatic add links to technorati tags or your blog’s tags where the words in your post match the tags of that post.

The most greatest things is that the plugin will not actually change your posts’ content in order to add links, so it will not hurt your posts. If you don’t want to use this plugin, just deactive it, and all links the plugin generated will automatic disapper just like they automatic come out, then your blog will return to its original status.

Go to Settings->Tag to Link for more information.

Match Rules

Here are some rules when and how the convert take actions. These rules are *only effective* after version 0.5

  1. If you tagged a post ‘hello world’ ‘hello’ ‘world’ and the content of your post is ‘hello world, I’m coming’, then this plugin will add link to ‘hello’, ‘world’, but not ‘hello world’, because there are links already. The rule can be simplily called *Short Tag First*.
  2. If you tagged a post ‘hello world’ ‘hello’ ‘world’ and the content of your post is ‘bigworld, hellod, world’, then this plugin will add link to the last ‘world’, and no links will be added to ‘world’ of ‘bigworld’, or ‘hello’ of ‘hellod’.

System Requirment:

wordpress 2.5+

It hasnot been tested in old wordpress versions, so I don’t know whether it works just right with them.  I suggest you update your wordpress, not because of this plugin, believe me, wordpress2.5+ is really great.

Installtion:

  1. Download the plugin
  2. Unachinve it
  3. Upload to wp-content/plugin/
  4. Login to plugin page and activate it
  5. Go to Settings->Tag to Link to change the default settings.  :)

Download latest:

Automatic Tag to Link

Donate for this plugin (Paypal)


Thanks for your supporting!  :)

推荐购买的书籍--都是牛书

相关文章

  1. 49 个评论 关于 “wordpress Plugin:Automatic Tag to Link”

  2. By baron on Aug 24, 2008 |

    hi. Thanks for plugin

    perfect.

    Regards

    陈炬 回复说:

    You are welcome~

  3. By Sebastian on Aug 24, 2008 |

    Thank you, just perfect!!

  4. By Alex on Aug 25, 2008 |

    Thanks for the plugin. Small thing that you asked for help with English…It should be understand not understant. Also the phrase ‘The times of convert a tag to link’ doesn’t really work. you might want to rethink that.

    please don’t take it as a critisim. i can’t speak any other languages, let alone write a plugin!

    Best Wishes

    Alex

    陈炬 回复说:

    Thanks for your help.
    Your say “Also the phrase ‘The times of convert a tag to link’ doesn’t really work.” , i don’t quite understand this. Do you mean the phrase is not right or this function doesn’t work?

  5. By Ragge on Aug 25, 2008 |

    Hello

    I really like this plugin, but it only works on tags with one word. It seems like the plugin points to the tag it self, not the slug. Am I right?

    Ex. I have a tag named “Tommy & Tigern”. When I klikk on the link I get 404, and the URL opened are mysite/tag/Tommy & Tigern, but it should have been mysite/tag/tommy-tigern

    As I said, I really like this plugin, so I hope you fix this in a future release :-)
    Regards
    Ragge

    陈炬 回复说:

    I see, I’ll work on this. Thanks for your help.

    陈炬 回复说:

    It was fixed in version 5 which is already released. Thanks again for your bug report.

  6. By Gary on Aug 25, 2008 |

    Thanks. I’ll definitely give this plugin a try.

  7. By 陈炬 on Aug 25, 2008 |

    试试看

  8. By Ragge on Aug 25, 2008 |

    Thank you for the update. Now it works whit the slug. That was fast :-)

  9. By kenan on Aug 25, 2008 |

    Hi,

    The plug-in is great but have a bug. Convert image alt tag content.

    陈炬 回复说:

    Yes, I already noticed that problem.
    In some cases like this, the plugin works incorrectly.

  10. By Tomas Kapler on Aug 27, 2008 |

    1. i would prefer (and i think it is more logical) to start with longer phrases then shorter - if i make “hello”, “world” and “hello world” tags, than using your “short first” version will never match the “hello world” tag

    2. would be nice to select to tag “first only” and “last” only

    3. would be nice to give the Anchors some class, so i can mark them differently

    4. it would be lovely to give them the title (description of the tag, the SQL table is counting with that, althouth it is not possible to give the description to tags yet without plugins)

    5. would be nice to use also Categories as tags (they are the same table)

    6. it would be great to have a possibility to define tag alternatives (the table count with this but in this version it is not used), so i can have “worlds”, “earth”, “earths”, “globe”, “globes …” child tags of “world” tag, so they all point to the same.

    陈炬 回复说:

    The code of this plugin is quite simple. I make the convert throught a single regular expression, so lots of bugs will be there, and it’s not easy to fix them all in one single regular expression.
    I am using short first just for convince, because when longer phrases first, short phrase may have chance to distory the longer phrases’s link if the short one is part of the longer, but I agree with you that the longer first is much logical.

    I will difinitly add ahchors some class in future release

    Using one regular expression to replace tags are convient but causes too much bugs(lots of bugs are still there). I will rewrite them when I get time.

    Thanks a lot for your great suggestion! Regards.

  11. By Slava on Aug 28, 2008 |

    Thank you for plugin. I have only one problem with it. When tag include brackets “(” or “)” it doesn’t work! Can you help me with this?

    陈炬 回复说:

    I’ll see to this when I get time. Sorry I am too busy in these days. It’s a job hurting season.

    and Thanks for your comment.

    Slava 回复说:

    Ok. I’ll be waiting…

    陈炬 回复说:

    It’s strange that it works when I test it on my site. Which version do your use.
    Anyway, I fix some bugs in the new release.;You may want to try it. :)
    If any problems, please let me know. Thanks.

    Slava 回复说:

    It’s really strange, but with new version some words doesn’t become links! So I’ll continue to use old one. About my problem - I use version 2.6, for example you can check this page - http://www.slava.in.ua/2008/08/18/heroes.html. It’s on russian, on the top of the content you can see - “Грег Биман (Greg Beeman)”, and on the bottom - same “Грег Биман (Greg Beeman)” as a tag! But in content it didn’t become link.

    陈炬 回复说:

    Ytest

    陈炬 回复说:

    Okay,I know where the problem is. Would you tell me what’s the version of plugin you are using now.

    And I’ll send you the fixed one by email.

    Slava 回复说:

    I’m using version 0.5. Will be waiting…

  12. By Slava on Aug 29, 2008 |

    Thank you very much for your help!
    See email for some details.

  13. By Kevin on Nov 21, 2008 |

    Excellent plugin - I used to use simple tags but it caused BIG problems on my site - this is quick and the sql calls are efficient - well done

    Just one criticism/improvement though - the tag link includes the the sub folder I run the wp from - eg : http://www.mysite.com/sub folder/tag/xxxx

    Would be better if it was just http://www.mysite.com/tag/xxxx

    陈炬 回复说:

    i’m kind of busy these days. the plugin is under GPL, so you can change and release the code as you want.

    I’ll fix these if i get time. Thanks a lot!

  14. By Kevin on Nov 21, 2008 |

    Also there is a bug where it auto tags image titles as well causing the images to disply improperly

    Lok what it did to this :

    <img alt=”2008 Melbourne Cup Favourite El Galo” src=”/images/elgalo.png” title=”El Galo” width=”315″ height=”100″ />

  15. By will on Dec 2, 2008 |

    能否让设置一篇文章内只有几个TAG被替换?
    就是同一个TAG在一篇文章内不要全部都替换,只替换前N个 :)

    陈炬 回复说:

    其实就是这样的,我记得是只替换前3个,这个值我在代码里限定死了….你可以修改成其他数值。

    will 回复说:

    thx
    了解

  16. By baobaocool on Dec 10, 2008 |

    报告一个bug,图片链接如果带有标签,那么这个标签也被替换,导致图片不能显示,且出现错误

    如,,而我的标签中敲好有个logo,那么这个图片地址中的logo就被替换了,所以图片显示不出来。
    至于alt和title里的标签会不会替换我没测试

    陈炬 回复说:

    恩,这个问题我会尽快修正。多谢提醒! :)

  17. By BYTE-Smasher on Feb 26, 2009 |

    I don’t understand what you mean by “The times of convert a tag to link”. What information needs to go in this box to make your plugin work?

    sammychen 回复说:

    You can leave it blank.

  18. By Richard on Mar 18, 2009 |

    Many thanks for a well thought plugin! ” little points.
    1- Can you please add a class for the tag link so that we can style it in css.
    2- Can you please make auto tags to appear in comments also.

    Reason: people often ask questions in comments, like “How can I style auto-tags?” If ’style auto-tags’ was an auto link to tag with help article/s this would be useful. Yes!

  19. By All Car Pictures on May 30, 2009 |

    Reason: people often ask questions in comments, like “How can I style auto-tags?” If ’style auto-tags’ was an auto link to tag with help article/s this would be useful. Yes!

  20. By FabianN on Jun 19, 2009 |

    Great plug-in, but I saw some people commented on how you said something, but you never got a clear answer on what was wrong.
    I’m talking about the phrase “The times of convert a tag to link”

    This doesn’t work because the sentence doesn’t make logical sense.
    “convert a tag to link” makes sense (although there should also be another “a” before “link”)

    But the first part of the sentence I think is really what throws people off, mostly that “of”. I feel like a different word should go there, or there’s a word missing around that “of”

    I am not sure what you are trying to say here either, but maybe you meant “to” instead of “of”, which if my guess work is correct, a good translation may be:
    “The number of times to convert a tag to a link”
    (this is going off if you mean that the number put in the box is the number of times a single tag word in your post will be turned into a link, so if you put 1 in the box, only the first time a tag shows up in a post will it be turned into a link, am I correct?)

    Also, a typo I found:
    “Link to m y blog’s tag”
    I believe you meant
    “Link to my blog’s tag”
    (you put a space in the middle of “my”)

  21. By FabianN on Jun 19, 2009 |

    After posting, I realized I could have just tested it out myself, which I did, and I was correct.
    So you’ll want to change

    The times of convert a tag to link

    to

    The number of times to convert a tag to a link

    陈炬 回复说:

    Thanks for your suggestion, very helpful.
    I have trouble in English, so lots of mistakes like these have been made.

  1. 10 Trackback(s)

  2. Aug 25, 2008: Leonaut.com
  3. Sep 1, 2008: links for 2008-08-31 « Free Open Source Directory
  4. Sep 10, 2008: RSSA聚合 » 关于爬虫
  5. Feb 28, 2009: Sosyal İm - Teknoloji haberleri » Wordpress’te Anahtar Kelimeleri Sayfa İçi Linkleme » Blog Arşivi » Wordpress’te Anahtar Kelimeleri Sayfa İçi Linkleme
  6. Feb 28, 2009: Wordpress’te Anahtar Kelimeleri Sayfa İçi Linkleme « Bay Bedava - Netten Başlıklar
  7. Mar 1, 2009: wordpress yazı içi bağlantı anahtar kelimeleri sayfa içi link | Bilinmeyen Gizlenen Gerçekler Antiduzen - Kralblog
  8. Mar 2, 2009: Wordpressde etiketlere otomatik link vermek | Ufuk Kişisel Blogu
  9. Mar 15, 2009: blogg | animadverto corporate blog
  10. Apr 17, 2009: Wordpress’te Anahtar Kelimeleri Sayfa İçi Linkleme | FireTurk -Blog
  11. Jun 20, 2009: Taraco-sell’s 2DIE | Like a Merlion

我来说下

关于

我叫陈炬,正在天津大学计算机学院->知识工程与科学研究所攻读硕士研究生。今年应届。您可以在我的自我介绍获得更多关于我的信息

订阅我的Blog


本站RSS地址| [这是什么?]
订阅到Google Reader | 订阅到 抓虾 阅读器 | 订阅到 鲜果 阅读器
Find entries :