Related Keywords

Freshness Warning
This article is over 16 years old. It's possible that the information you read below isn't current.

Several people have asked about an MT plugin that creates a related entries list using keywords instead of categories. David Raynes even wrote a plugin that does it.

My Related Entries plugin already does this, and I’ve been using it this way for months. I just haven’t ever written the documentation for this feature. If you’re brave enough to try it without documentation, go download the plugin and try it out. Hint: field="keywords"

One thing to keep in mind, though. Getting related entries by keyword is a lot slower than getting them by category. Your rebuild times will increase if you use the keyword method.

Már Örlygsson
April 15, 2003 12:20 PM

Can you provide more details? How does it deal with a comma-seperated list of keywords, where each keyword may consist of more than one word with spaces in-between?

Adam Kalsey
April 15, 2003 2:17 PM

Keywords are considered to be delimited with commas and listed in order of importance. The keywords for this entry are: related entries, keywords, plugin, movable type The plugin will find the first N entries that match "related entries" and if that number is less than the lastn specified in the MTEntries tag it will move on to "keywords" and so forth. So if you only have 2 entries that have "related entries" as a keyword and your lastn is 3, the plugin will grab those two and then will find entries that have "keywords" as a word.

Már Örlygsson
April 15, 2003 3:20 PM

Excellent! However, I'm still curious. How well does it handle cases when entries have two or more keywords in common? Example: Lets assume that the current entry has the following keywords assigned to it: "dog, cat, horse, parrot". Related Candiate A has: "dog, house, sofa, apple". Related Candiate B has: "sheep, horse, parrot, cat". Which does the search function consider to be more "related" to the current entry - A or B?

Adam Kalsey
April 15, 2003 3:32 PM

Whichever entry is more recent. The plugin doesn't have any sort of scoring logic. It essentially lists the N most recent entries that have a keyword in common. If you use a controlled vocabulary for your keywords, and you often use the same keyword first, then you'll probably find that your entries never look beyond the first keyword in order to find a match.

Trackback from the golden path
April 23, 2003 8:45 PM

About the site

Excerpt: Philiosophy As a discourse between myself and the wider world, the golden path is an unorganized accumulation of hopes, the embodiment of wish. Design notes can be found in the archives of this site itself, but include: February 12, 2003...

May 13, 2003 12:18 PM

> "in order of importance" May i ask, how this order is generated? Who decides what's important?

Adam Kalsey
May 13, 2003 12:46 PM

You do. The plugin assumes that you listed your keywords in the order that you felt was important. You might also consider reading Related Entries Revisted:

September 23, 2003 5:57 AM

and the plugin is absolutly free??

Adam Kalsey
September 24, 2003 4:00 PM

Yes, all my plugins are free, although I'd be happy to take your money if you sent it to me.

Philip Dhingra
September 27, 2003 12:31 AM

Anybody try this with keywords? - for me, this still only shows entries in the same category.

Philip Dhingra
September 27, 2003 3:06 PM

I tried pasting the code I used, i just did mtrelatedentries field="keywords" but it still just only showed related by keywords

Philip Dhingra
September 27, 2003 3:07 PM

I tried pasting the code I used, i just did mtrelatedentries field="keywords" but it still just only showed related by category

Philip Dhingra
September 29, 2003 6:39 PM

Solved my own problem: It only matches other entries that matched that keyword in their keyword field, and not in the entry body

Trackback from Anders Jacobsen's blog
January 21, 2004 6:21 AM

Optimizing Movable Type - Keyword links

Excerpt: In theory, at least, this approach should enable searching for the keywords and still hitting the archived page despite the word not necessarily being written at (or conjugated in the same way) at the page itself.

October 12, 2004 11:26 AM

Using MTRelatedEntries field="keywords" I'm getting relations between keywords & Entry Body. ie. One entry has "art" as a keyword. Another entry has "art" in it's body field. These are now related. This may be good though, as I'm about to implement the related entries revisited dealie. Also, I'm getting the error: splice() offset past end of array at plugins/ line 77

This discussion has been closed.

Follow me on Twitter

Best Of

  • Rounded corners in CSS There lots of ways to create rounded corners with CSS, but they always require lots of complex HTML and CSS. This is simpler.
  • The mouse and me Not only is the mouse very destructive, but it's evaded all attempts to capture or kill it so far.
  • Embrace the medium The Web is different than print, television, or any other medium. To be successful, designers must embrace those differences.
  • Let it go Netscape 4 is six years old.
  • Newly Digital Newly Digital is an experimental writing project. I've asked 11 people to write about their early experiences with computing technology and post their essays on their weblogs. So go read, enjoy, and then contribute. This collection is open to you. Write up your own story, and then let the world know about it.
  • More of the best »

Recently Read

Get More

Subscribe | Archives


Product Manager Career Ladder (Aug 19)
What are the steps along the product management career path?
Building the Customer-Informed Product (Aug 15)
Strong products aren't composed of a list of features dictated by customers. They are guided by strong visions, and the execution of that vision is the primary focus of product development.
Assumptions and project planning (Feb 18)
When your assumptions change, it's reasonable that your project plans and needs change as well. But too many managers are afraid to go back and re-work a plan that they've already agreed to.
Feature voting is harmful to your product (Feb 7)
There's a lot of problems with using feature voting to drive your product.
Encouraging 1:1s from other managers in your organization (Jan 4)
If you’re managing other managers, encourage them to hold their own 1:1s. It’s such an important tool for managing and leading that everyone needs to be holding them.
One on One Meetings - a collection of posts about 1:1s (Jan 2)
A collection of all my writing on 1:1s
Are 1:1s confidential? (Jan 2)
Is the discussion that occurs in a 1:1 confidential, even if no agreed in the meeting to keep it so?
Skip-level 1:1s are your hidden superpower (Jan 1)
Holding 1:1s with peers and with people far below you on the reporting chain will open your eyes up to what’s really going on in your business.

Subscribe to this site's feed.


Adam Kalsey

Mobile: 916.600.2497

Email: adam AT

Twitter, etc: akalsey



©1999-2019 Adam Kalsey.