Jun 22, 2009
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! ![]()
Great plugin, Thanks a lot!
test thread comments
some theme error (cmp) line 83,
delete this line: usort($tags,cmp);
Hello,
Onload of page my antivirus put alert, check pls.
which page?
If you replace the match pattern, and replace string, you can actually make it case insensitive while still preserving the case of the original word, helpful if your tag is used at the beginning of a sentence, etc. Revised code below:
$pattern=’/(?name.’)(?!.*)/i’;
AND
$replace=’$1‘;
Didn’t post… trying this:
$pattern='/(?<=[^a-zA-Z])('.$value->name.')(?!.*</a>)/i';
AND
$replace='<a href="'.$structure.'">$1</a>';
[...] wordpress Plugin:Automatic Tag to Link – Linux-ist- 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. … [...]
hi,
i already use your plugin for weeks now on wp 2.8.2 ( i always upgrade my wp )
and found couple of thinks:
- the regex pattern disregard plural tag
- the link provided is not the same like the default wordpress tag
for example you may see one of my site: http://forexblog.uni.cc/pets/5041-electrical-dog-fence-your-aid-in-allowing-your-dog-experience-his-limits/
btw, thanks for the hard work, it’s great idea and plugin.
the tag link style is depends on your own settings in permant link. so if you havn’t chanege the default link style, it’s be your default link style, and if you’ve changed it, it will be changed.
what is the best setting for tag link?
The number of times to convert a tag to a link?
what the best number?
I get an error when I try to access the admin panel, Tag to Link. The plugin is working though, but I would like to tweak it.
The plugin has problems with images. For expample: when the image title fits a tag, it makes a link and it kills the images from the blog post. does any one know a fix for that?
Thanks
This plug-in needs to have ability to disable the tag to link for specific posts, like a keyword or a flag you can put in the posts that won’t let it perform it.
Since using this plug-in automatically violates all paid posts on SocialSpark and PayPerPost, I love the plug-in, but can’t use it unless I can disable on certain posts only.
This plugin very useful and i use for my blog ! thanks for.. always success friend !!
Hi,
I noticed some tags were left out that should have been linked according to the option settings and tag names. The omitted tag words were not included in longer tags.
Therefore, I think the regexpr pattern is too greedy. There is no need to to have the ‘.*’ in the search expression after the $value->name.
The plugin starts with the shortest tags e.g. ‘hello’ and ‘world’. ‘hello world’ would come later. Once ‘hello’ and ‘world’ have been linked, the pattern omits ‘hello world’ anyway.
Deleting ‘.*’ from the regexpr solved my problem.
Uwe
P.S. Would be nice to provide a css class with your links, e.g. <a class="tag2link" href=" …
It`s great
it works in Persian language
Perfect
thank you
Dear, Nice one the only thing which i want you to improve is the plugin should not take in consideration the tags within image url or image name it self.
Just saw, that you are using the same theme as I do., but the major difference is that i only us the navigation panel and rest is redesigned by me., just have look and provide me with some feedback….
Some news about image problem? I’ve the same problem and i can’ t use this plugin …
I would also like to use the plugin, but the image problem makes it impossible
@Peter always start your tags with upper case, that solved my problem. And thanks for wonderful plugin..