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: ,

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

    • 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….

    • Giuseppe says:

      Some news about image problem? I’ve the same problem and i can’ t use this plugin …

      • Peter says:

        I would also like to use the plugin, but the image problem makes it impossible

        • I get the same problem, but not just with image tags, but any link href that contains a tag keyword.

          I will need to uninstall if the plugin can’t know if it’s altering a URL, either an A’s href or an IMG’s SRC tag.

          Someone mentioned making all your tags upper-case, but that’s not practical to go back and edit all of them to upper-case.

      • Lark says:

        GN7wN6 Very true! Makes a change to see someone spell it out like that. :)

  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?

  20. Duşakabin says:

    Misyonumuz:
    Müşterilerimizin değişen ihtiyaçlarının farkında olarak, öncü ve yaratıcı çözümler sunmak,
    Daima iyiyi ve yeniyi yakalamak, geleceğe dönük bakış açımızla her zaman beklentileri aşarak yeni standartlar oluşturmak,
    Modern yaşam standartlarına değer katan, onları farklı kılan ürün ve hizmetler tasarlayıp sunmak.

  21. terrencebit says:

    Sadly, it destroys the images that include a tag name on its filename, so i cannot use it on my website until this is fixed, as this kills most of my posts :’(

  22. sometimes windows7 won’t install if you install it on a pc with a previous installation of windows XP ::

  23. karaca ören says:

    orada bir köy var uzakta..
    köyümüz artık daha yakın

  24. ihsan says:

    prensip sahibi olmak saygın bir kuruluş olmanın bir ifadesidir.

  25. achat coquin says:

    sometimes windows7 won’t install if you install it on a pc with a previous installation of windows X

  26. Andy says:

    Does anyone have any idea on how to exclude/strip the tag links from all img alt & title tags?

  27. raydolap says:

    Kalite tesadüf değildir. İşimizde önce kaliteye önem veriyoruz. Bu doğrultuda en küçük ayrıntıyı bile dikkate alıyoruz.

  28. Rulman says:

    Otomotiv sanayi, Rulman, Kayış, Keçe online sipariş, hızlı destek, İstanbul içi motorize servis. Tüm scooterlerin varyatör kayışı bulunmaktadır.

  29. duşakabin says:

    Arpes duşakabin, duşakabin, sürgülü duşakabin, menteşeli duşakabin, standart duşakabin ve diğer duşakabinler ile ilgili tüm ihtiyacınızı karşılar.

  30. anas says:

    hi

    thank you for this great plugins

    i use plugin in my blog but after update to wordpress 3.1 all tag in my blog is broken

    http://www.anasblog.metag/%post_tag%

    why that ??

  31. eni kazemi says:

    i’m very very sad.

    this plugin dos not work with wordpress 3.1.1

    please look…

  32. Andy says:

    Love the plugin but it seems to pick and choose when it wants to link a tag…especially when there are multiple instances in the same post.

    Does anyone else get this problem or have a solution?

    Thanks

    Andy

  33. composter says:

    the plugin is now error where run under WP 3.1.1. Please help to fix this issue.

  34. Duşa Kabin says:

    It`s great

    Perfect

    thank you

  35. dusakabin says:

    Duşakabin & Küvet olarak tasarım,üretim,satış ve montaj sonrası hizmetlerimizle sizlere en güzelini sunmayı hedefliyoruz.

  36. Vrwzdwhk says:

    Could you give me some smaller notes? Naked Female Models
    48216

Leave a Reply