Autocompleter
A Wordpress plugin for adding Autocomplete functionality to your blog search
Plugin download
Brief information
Adding autocomplete functionality to the blog search input field. The values provided are the tags and categories used in the blog.
Long description
This plugin adding autocomplete functionality to search input field. It is using core jQuery library as well as autocomplete jQuery plugin from http://www.pengoworks.com/workshop/jquery/autocomplete.htm
This plugin requires zero configuration. You just need to activate and it’s ready to be used in the blog. The plugin is tested with Wordpress 2.6.5, but until there aren’t big core changes, it sould work for all future releases. I don’t have information if this plugin will work with older versions of Wordpress, but for sure it is working with 2.6.x
Important note before installation
Important is to check if the search text field has id attribute. The value of this attribute should be s
Example of the search field without id.
The field should look this way in order to work the Autocomplete plugin.
Thanks to
Installation
This section describes how to install the plugin and get it working.
- Upload `autocompleter` to the `/wp-content/plugins/` directory
- Activate the plugin through the ‘Plugins’ menu in WordPress
- Check if in the search input field in your theme has id attribute. Important is that the id attribute should be s. See the example in Description section.
Frequently Asked Questions
Why this plugin is useful for users of your blog?
It’s useful because they can easily check what themes you writing for, and this way they could find the desired article more easily.
Is it possible to use it with non standard search like Google Custom Search Engine or similar?
Yes of course, autocomplete is not related to the post action after the submit. Just check if the id of the field is with value s.
Is it heavy for my blog?
No, it searching only in one table so, it is not heavy at all.
Is it secure?
Actually it’s escaping the search string with functions provided from Wordpress, so it is secure as Wordpress.
Use contact page for support and other questions. Thanks!

Too bad this handy plugin busts my preview feature on comments (while using Sexy Comments as plugin for that). So I deactivated this plugin.
Running WP 2.7 beta 3 btw…
Thanks… Nice Plugin…
For anyone that wants to autocomplete post titles instead of tags, I rewrote the sql query to compensate.
Under values.php:
Replace the select query with:
“SELECT post_title FROM wp_posts WHERE post_title LIKE ‘$search%’ AND post_status LIKE ‘%publish%’”
Replace: echo $word->name.”\n”;
with
echo $word->post_title. “\n”;
Thanks for a great plugin. =) Happy searching!
This pretty much just asks for post_title’s that are published so as not to spam the list with the revisions. After all we only need the title. This also removes the media files from the search box as well, because they are posted as inherit.
Thanks for the update snetErz. Although I don’t think that the idea of search is to make autocomplete of the posts.
The reason why I think this way is simple - autocompleter is just a guide (helper) which will help users to find relevant information. Tags and categories are exactly this.
Anyway, your comment will be here, so anyone who want to use it with your approach is more welcome
Cheers