A Search Bug With WordPress 2.1 and Ultimate Tag Warrior

by Ben Yoskovitz

SimpleTags is still the easiest way to get Technorati tags on your blog, to help Technorati users find you. But on Andy Beard’s suggestion I decided to give Ultimate Tag Warrior another try.

The latest version of Ultimate Tag Warrior is 3.1415926. I installed it and after mucking with the settings a bit, I was able to get tags working on new posts. According to Andy, 50% of his Google organic traffic comes to the tag pages UTW creates, which is pretty amazing! A tag page looks like this one for blogging.

But then I noticed that using the SEARCH feature wasn’t working - it wasn’t picking up old posts. A blog needs a good search feature, people do use it to find interesting stuff buried in your archives, so after poking around a bit, I found the problem — there’s a bug with WP 2.1 and UTW for post searching.

There’s also a fix, which is fairly easy.

  1. Download the file ultimate-tag-warrior-actions.php and open it in Notepad or some other text editor.
  2. Locate the code:

    add_filter(’posts_join’, array(’UltimateTagWarriorActions’,'ultimate_search_join’));
    add_filter(’posts_where’, array(’UltimateTagWarriorActions’,'ultimate_search_where’));

  3. Comment out those two lines by putting // in front of each:

    // add_filter(’posts_join’, array(’UltimateTagWarriorActions’,'ultimate_search_join’));
    // add_filter(’posts_where’, array(’UltimateTagWarriorActions’,'ultimate_search_where’));

  4. Save the file and re-upload it.

The search feature on your site should now work. This will disable the search by tags functionality that the latest version of UTW supports, but that’s secondary to being able to search through old posts.

If you’re using a plugin for searching, this is not relevant, but most people are using the native WordPress search features.

I’m sure Ultimate Tag Warrior will be fixed soon, but if you can’t wait, go ahead and hack the file and give it a try.

February 1st, 2007
More in Blogging

6 Responses to “A Search Bug With WordPress 2.1 and Ultimate Tag Warrior”

#1 Paul OFlaherty

Great tip Ben!

#2 Ben Yoskovitz

No problem Paul. I found it elsewhere, and while I don’t usually get so technical here, since it was related to things I had recently posted about in terms of tagging, etc. I thought it was worth sharing.

#3 Ashish Mohta

Eeven I am looking forward to it.I really need UTW

#4 Julio Angel Ortiz

This was driving me nuts tonight. I found your page thanks to Google. I recently installed Ultimate Tag Warrior and noticed this problem today. Awesome tip.

#5 Ben Yoskovitz

Julio - glad I could help you out!

#6 Wordpress 2.1使用UTW后搜索功能失效的解决 - 十三不靠 - awell's blog ™

[…] A Search Bug With WordPress 2.1 and Ultimate Tag Warrior […]

Leave a Reply

Please use your real name or a handle that's not driven by trying to gain SEO / Google Juice from my blog. If you put in a "name" designed for SEO purposes, I will edit it. I support the DoFollow movement, but this is also a community, and comments are meant to inspire discussion, not gain link love. Thank you!

Co-Founder of Standout Jobs.
Entrepreneur and Opportunity Seeker!
About Me · Email Me