Welcome, visitor! Log in

KB Plugins blog

The best Wordpress plugins are free

KB Linker

Please post your comments about this widget to the appropriate post in the KB Linker category. I’ve turned off commenting on this page because the page was getting too big.

KB Linker will link phrases you specify to sites you specify. For example, you could make it so that whenever “WordPress” occurs in a post it is automatically linked to wordpress.org. All you do is enter keyword->URL pairs into the Options->KB Linker page in your admin screen. Enter pairs so that they look something like this:


You’ll find more detailed instructions on the admin page. But really, it’s pretty easy. And KB Linker does the hard work of (a) making sure that words aren’t already linked and (b) making sure only words, not partial words, get linked.

The plugin is commented extensively, so if you want to tweak its behavior, give it a go.

Why might you want this plugin?

Well, that’s obviously up to you. Maybe you don’t. But if there is something that you’re always linking to, this plugin might help you. For example, I’ve got a travel blog (on a different URL). I have set it up so that every time I mention certain cities, the city’s name gets linked automatically to a map of that city.

This plugin could also serve SEO (search engine optimization) purposes if you’re into that sort of thing; you could use it to ensure plenty of internal cross-linking between your posts.


Download KB Linker

Please post your comments about this widget to the appropriate post in the KB Linker category. I’ve turned off commenting on this page because the page was getting too big.


  1. Janfri
    Posted June 1, 2007 at 12:40 pm | Permalink

    Hi Adam,
    first of all, thanks for your great widgets. I am really intrigued to know how kb linker works, the idea sounds great. But I can’t find any link for the download. So could you be so kind to tell me where? Thanks for advanced and good luck!

  2. Posted June 1, 2007 at 1:04 pm | Permalink

    It can take several days for the folks over at wordpress.org to add new plugins to their database, and I just made the request today. It might be a couple weeks before they add it. Until then, it won’t be available for download. I’ll add a link on this page once they’ve done their part.

    This is really a very simple plugin. It just finds words in your posts and adds links to them. That’s about it.

  3. Kim
    Posted June 30, 2007 at 10:27 am | Permalink

    Its been a month now zzzzzzzzzzzzzzzz

    Why not upload it to your own domain and post the direct link here :)

  4. Posted July 3, 2007 at 8:53 am | Permalink


  5. Janfri
    Posted July 7, 2007 at 3:13 am | Permalink

    Hi again Adam,
    thanks for the download link, but the file seems to be corrupt. At least I acant open it…
    Best regards and thank you,

  6. Posted July 7, 2007 at 11:09 am | Permalink


    You’ll need to unzip it first. On Windows, that should happen automatically when you click twice on it. On other systems, I’m not sure.

  7. suffi
    Posted July 29, 2007 at 10:37 pm | Permalink

    Download is not working.


  8. Roz
    Posted August 7, 2007 at 6:44 am | Permalink

    I’m getting a “fatal error” message as well.

    Thanks for all your good work.

  9. Posted August 14, 2007 at 9:08 am | Permalink

    Sorry about the problem with the link. I finally got approval from wordpress.org to host this there. I just uploaded it. I should appear there within an hour or two. When it does, I’ll change the download link in the post here.

  10. Posted August 16, 2007 at 9:50 am | Permalink

    I installed the plugin with no problem, but in the Options menu, I get this on the top of that page:
    Warning: extract() [function.extract]: First argument should be an array in /…/plugins/kb-linker/kb_linker.php on line 105

    Can I get some help?


  11. Posted August 16, 2007 at 10:40 am | Permalink

    Hmm. My guess is that you’ve got something invalid saved in the linker’s text box. I’ll take a look at the code in a bit to be sure.

  12. Posted August 22, 2007 at 7:46 pm | Permalink

    If I want to make all with open a new window.Can I do this? Thanks!!

  13. Posted August 23, 2007 at 7:41 am | Permalink


    You certainly can, but I don’t do customizations–you’ll need to do this yourself. Open up the plugin file. It’s heavily commented, so you should be able to find the right place to edit on your own.

  14. Posted August 23, 2007 at 10:18 am | Permalink

    Hi Adam,
    OK,I’ll try to do it.KB Linker is a great plugin.Work fine in my site.Thanks for your help!

  15. Posted August 25, 2007 at 6:34 am | Permalink

    Hi Adam,

    I’m using your plugin but I have a problem. When I insert an image whith title=”what you want” and “what you want” is expected to be linked the plugin breaks the image tag. Is there something to fix this?

    Thank you.

  16. Ruth
    Posted August 27, 2007 at 9:53 pm | Permalink

    I’m also getting the

    Warning: extract() [function.extract]: First argument should be an array in /…/plugins/kb_linker.php on line 105

    error. It’s nothing I saved in the linker’s text box, because I just installed the plugin and haven’t entered anything in the linker’s text box yet. Any updates on this yet?

  17. Ruth
    Posted August 27, 2007 at 9:59 pm | Permalink

    Hmmm… I went ahead and entered a couple of links in the box, and the error has now vanished. Just for kicks I installed the plugin on another blog I manage, and had the same results — the error appears when the plugin is first installed, but vanishes when links are entered.

    FWIW… :)

  18. Posted August 28, 2007 at 7:46 am | Permalink

    sergiold: That means the regexes need to be tweaked. I don’t know when I’ll get to it, things are a bit busy. I’ll post an update when I can.

    Ruth: Yeah, I had been thinking after my reply to Martin that the error probably resulted from having nothing in the text box. I never tried it that way, since when I was developing it, I always had something there. It’s a simple fix, I’ll see if I can fix that this morning.

  19. Posted August 28, 2007 at 7:53 am | Permalink

    Ruth, it should be fixed now. I didn’t have time to test the fix, so somebody let me know if it causes problems.

  20. Posted August 28, 2007 at 4:24 pm | Permalink

    Thank you Adam. Another problema I’m having is that it only links when de word or words are finished whit a comma or a point or an HTML tag.

    For example if the words to link are “ejem plo”, in:

    “ejem plo and ejem plo.”

    It only links de second one.

    If I put a list and I put a blank like this ejem plo it doesn’t work, but if I quit the blank ejem plo it works.

    I don’t really know if this is a problem of the plugin or if I’m doing something wrong.

    Thank you.

  21. Posted August 28, 2007 at 4:28 pm | Permalink

    My last comment doesn’t show the examples so here I copy the last one:

    ejem plo
    ejem plo

    Thank you.

  22. Posted August 28, 2007 at 4:32 pm | Permalink

    Sergiold, I’m not sure why it would do that. It will be a while until I can work on it, though, since I have a conference to attend this week. I’ll post an update if I find a fix.

  23. Posted August 30, 2007 at 10:11 am | Permalink

    Thank you for your attention. Don’t worry if you can’t fix in a while. I’m only informing you in case you want to improve the plugin.

  24. Posted September 7, 2007 at 11:07 am | Permalink


    I’ve just uploaded a new version of the plugin. If you’re still having trouble, try the new version, then post a comment about your error again.

    The new version allows you to set link targets, fix some non-English problems, and so on.

    I’ll be closing comments on this page shortly and creating a new post. Put your comment there.