Linux-ist

Icon

cool toys for linux

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

  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!  :)

Category: Web Applications

Tagged: ,

25 Responses

  1. A.C. says:

    Great plugin, Thanks a lot!

  2. d3ngsz says:

    some theme error (cmp) line 83,

    delete this line: usort($tags,cmp);

  3. AnnaHopn says:

    Hello,
    Onload of page my antivirus put alert, check pls.

  4. Ben says:

    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‘;

  5. Ben says:

    Didn’t post… trying this:

    $pattern='/(?<=[^a-zA-Z])('.$value->name.')(?!.*</a>)/i';

    AND

    $replace='<a href="'.$structure.'">$1</a>';

  6. [...] 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. … [...]

  7. cgi says:

    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.

    • sammychen says:

      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.

  8. mijie says:

    what is the best setting for tag link?

    The number of times to convert a tag to a link?

    what the best number?

  9. Jim R says:

    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.

  10. MiniPirat says:

    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

  11. 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.

  12. Dudayz says:

    This plugin very useful and i use for my blog ! thanks for.. always success friend !!

  13. Uwe says:

    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=" …

  14. Masoud says:

    It`s great
    it works in Persian language

    Perfect

    thank you

  15. 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.

  16. sumit says:

    @Peter always start your tags with upper case, that solved my problem. And thanks for wonderful plugin..

  17. Matt says:

    still no updates to exclude img tags from the plugin?

  18. duşakabin says:

    what is the best setting for tag link?

  19. Marcio says:

    Hi there,

    I used the tag “Inverno 2010/11″ on the title of the post and the post dont appear. just the title but images and text no… iDo you know some solution for it?

Leave a Reply