wordpress Plugin:Automatic Tag to Link
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
- 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*.
- 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:
- Download the plugin
- Unachinve it
- Upload to wp-content/plugin/
- Login to plugin page and activate it
- Go to Settings->Tag to Link to change the default settings.
Download latest:
Donate for this plugin (Paypal)
Thanks for your supporting! ![]()






49 个评论 关于 “wordpress Plugin:Automatic Tag to Link”
By baron on Aug 24, 2008 |
hi. Thanks for plugin
perfect.
Regards
陈炬 回复说:
August 24th, 2008 at 12:09 am
You are welcome~
By Sebastian on Aug 24, 2008 |
Thank you, just perfect!!
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
陈炬 回复说:
August 25th, 2008 at 8:05 am
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?
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
陈炬 回复说:
August 25th, 2008 at 8:06 am
I see, I’ll work on this. Thanks for your help.
陈炬 回复说:
August 25th, 2008 at 9:00 pm
It was fixed in version 5 which is already released. Thanks again for your bug report.
By Gary on Aug 25, 2008 |
Thanks. I’ll definitely give this plugin a try.
By 陈炬 on Aug 25, 2008 |
试试看
By Ragge on Aug 25, 2008 |
Thank you for the update. Now it works whit the slug. That was fast
By kenan on Aug 25, 2008 |
Hi,
The plug-in is great but have a bug. Convert image alt tag content.
陈炬 回复说:
August 26th, 2008 at 12:48 pm
Yes, I already noticed that problem.
In some cases like this, the plugin works incorrectly.
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.
陈炬 回复说:
August 27th, 2008 at 9:15 am
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.
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?
陈炬 回复说:
August 28th, 2008 at 9:16 pm
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 回复说:
August 28th, 2008 at 9:26 pm
Ok. I’ll be waiting…
陈炬 回复说:
August 29th, 2008 at 10:48 am
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 回复说:
August 29th, 2008 at 2:54 pm
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.
陈炬 回复说:
August 29th, 2008 at 3:16 pm
Ytest
陈炬 回复说:
August 29th, 2008 at 4:48 pm
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 回复说:
August 29th, 2008 at 4:58 pm
I’m using version 0.5. Will be waiting…
By Slava on Aug 29, 2008 |
Thank you very much for your help!
See email for some details.
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
陈炬 回复说:
December 2nd, 2008 at 1:54 pm
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!
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″ />
By will on Dec 2, 2008 |
能否让设置一篇文章内只有几个TAG被替换?
就是同一个TAG在一篇文章内不要全部都替换,只替换前N个
陈炬 回复说:
December 2nd, 2008 at 1:51 pm
其实就是这样的,我记得是只替换前3个,这个值我在代码里限定死了….你可以修改成其他数值。
will 回复说:
December 2nd, 2008 at 1:56 pm
thx
了解
By baobaocool on Dec 10, 2008 |
报告一个bug,图片链接如果带有标签,那么这个标签也被替换,导致图片不能显示,且出现错误
如,,而我的标签中敲好有个logo,那么这个图片地址中的logo就被替换了,所以图片显示不出来。
至于alt和title里的标签会不会替换我没测试
陈炬 回复说:
December 10th, 2008 at 9:55 am
恩,这个问题我会尽快修正。多谢提醒!
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 回复说:
February 27th, 2009 at 9:45 am
You can leave it blank.
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!
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!
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”)
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
陈炬 回复说:
June 19th, 2009 at 11:22 am
Thanks for your suggestion, very helpful.
I have trouble in English, so lots of mistakes like these have been made.