A Search Bug With WordPress 2.1 and Ultimate Tag Warrior


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.

If you enjoyed this post, please share it!



February 1, 2007 Posted in Blogging by

  • http://blog.oflaherty.dk Paul OFlaherty

    Great tip Ben!

  • http://blog.oflaherty.dk Paul OFlaherty

    Great tip Ben!

  • http://www.instigatorblog.com 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.

  • http://www.instigatorblog.com 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.

  • http://feeds.feedburner.com/technospot/tecnologywalksthewayoflife Ashish Mohta

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

  • http://feeds.feedburner.com/technospot/tecnologywalksthewayoflife Ashish Mohta

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

  • http://www.julioangelortiz.net 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.

  • http://www.julioangelortiz.net 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.

  • http://www.instigatorblog.com Ben Yoskovitz

    Julio – glad I could help you out!

  • http://www.instigatorblog.com Ben Yoskovitz

    Julio – glad I could help you out!

  • Pingback: Wordpress 2.1使用UTW后搜索功能失效的解决 - 十三不靠 - awell's blog â„¢

About Ben Yoskovitz
I recently joined GoInstant as VP Product. GoInstant changes how we use the web, making it shareable like never before.

I'm also a Founding Partner at Year One Labs, an early stage accelerator in Montreal. Previously I founded Standout Jobs (and sold it). I'm a hands-on startup guy, helping companies grow successfully from the idea forward. You can reach me at byosko at gmail dot com.

Follow Ben on TwitterFollow this blog via email
Startup Tools
Find Stuff
Please Check Out:
NextMontreal.com I Spy Montreal
Disclaimer
The opinions and commentary on this site are mine and mine alone. They do not necessarily reflect the opinions or positions of my employer, GoInstant.