Update to the Keyword Link Plugin

Martin on May 8th, 2008

After getting quite a bit of feedback on the keyword link plug in, I hereby present the updated version.

This simple plug in allows you to specify keyword and link pairs. If the keyword is found in the article it will automatically be linked.

My original replacement routine did a simple string replace, which was fine if the words were noun’s ; but if you started to apply grammar things went wrong. (”Stonehenge” doesn’t quite change like “magic”, “magically”). The new routine checks for word boundaries which should solve nearly all problems.

To allow for styling the links, I have added a around each link to allow for modifying the link in any way you can imagine (or not). For example to make the link bold add the following to your style.css file:

.bm_keywordlink { font-weight: bold; }

Two more requests were for only linking the first mention of a link in the article, and for some links to be tagged as “nofollow”. Both are now possible.

Subscribe to this blog's RSS feed

Keywordlink Plugin

Martin on March 26th, 2008

Neuschwanstein Castle by roblisameehan
In one of my many lives I am developing a travel website. While writing the content I quickly got tired of all the manual cross-linking. Each time I mention London in my articles I would like to add a link to the London introduction page.
It is fairly trivial to do this automatically [...]

Continue Reading...

When a visitor comes across your website in Google what is the first thing they notice? And what is the second thing they notice?

The first thing to hit your eyes is the title. And in this example my blog is giving a boring, non-descriptive introduction to my site. It is just the title and [...]

Continue Reading...

Speeding up Wordpress with WP Super Cache

Martin on March 24th, 2008

A Really Fast Wheelie by DavidHT
Your moment of fame has arrived and with it the unwashed masses of the Internet flock to your site to gawk at your latest insights. As you have bought the promotion priced hosting with its retirement age web server it dies a horrible dead just seconds into the rush.
No budget [...]

Continue Reading...

Showing Code Snippets on your Blog

Martin on March 24th, 2008

Code is Poetry by Ikhlasul Amal
A blog is a great place for displaying text but sometimes you would like to illustrate a little code and cutting and pasting it will just leave a mess. The problem is of course that a lot of the special characters (such as < and >) are removed or misinterpreted [...]

Continue Reading...

A human readable sitemap

Martin on March 24th, 2008

In an earlier post I touched on the sitemap.xml file, and how it is used by search engines to quickly detect any changes made to your website and to make sure that they do not miss a page when indexing your site.
An older but also tried approach is the human readable sitemap. Not only [...]

Continue Reading...

Plugin: Google XML Sitemaps

Martin on March 24th, 2008

In the good old days, web spiders employed by the search engines has to earn their keep. They had to crawl each page to find links to other pages and so slowly discover the world wide web. Its a good way of finding every page, but it is also very time consuming.
Chewing on their [...]

Continue Reading...

Wordpress Theme Gallery Plugin

Martin on March 23rd, 2008

You can find many good collections of Wordpress themes, but how about building your own collection? You can offer your visitors a nice selection of quality themes to browse. I often come across many nice themes, but other than bookmarking them, I have no real way of sharing them. This plugin helps you create your [...]

Continue Reading...