This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

KB Linker


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 All you do is enter keyword/URL pairs into the Options=>KB Linker page in your admin menu.

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 whole words, not partial words, get linked.

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


If you post your support questions as comments below, I probably won’t see them. If the notes in the plugin file doesn’t answer your questions, you can post support questions at the KB Linker plugin page on my site.


This plugin is provided “as is” and without any warranty or expectation of function. I’ll probably try to help you if you ask nicely, but I can’t promise anything. You are welcome to use this plugin and modify it however you want, as long as you give credit where it is due.

But please don’t redistribute this plugin from anywhere other than right here. Unless months go by and it looks like I’ve completely abandoned this thing, let’s not get forks going without a darn good reason; that just confuses people. But send me your improvements and I’ll add them in and include a shout-out to you here.


  1. Upload kb_linker.php to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Go to the new ‘Options => KB Linker’ admin page. Follow the instructions.

All done. Go to your blog’s home page and admire all the automatically inserted links.


Why would I want this?

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. I have set it up so that everytime 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.

Can I make the links open in new windows?

Yes, as of version 1.03. See the instructions on the plugin’s admin page.

I have problems on my non-English blog.

Tweak the settings at the top of the plugin file.

Does the plugin do X?

Probably not. But this is a simple piece of code, so try modifying it to suit your whims. Take a look at the plugin file. I marked up the code heavily to make it easy to tweak. After looking at the code, if you have a question, you can post a comment on the plugin’s page.

I have a question that isn’t addressed here.

If you post your support questions as comments below, I probably won’t see them. You can post support questions at the KB Linker plugin page on my site. But first, PLEASE read through the notes at the top of the plugin file.


There are no reviews for this plugin.

Contributors & Developers

“KB Linker” is open source software. The following people have contributed to this plugin.


Translate “KB Linker” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.