Category Search adds the option to display category names in search results. Useful when you have a lot of categories and you want to display them as a part of search results.

Screenshot from emuhq.com using this plugin
Download
Installation & Usage
- Upload the whole plugin folder to your /wp-content/plugins/ folder.
- Go to the Plugins page and activate the plugin.
- Use the Options page to change your options
- Use the following code in your theme template most probably Search Results (search.php)
<?php if (class_exists('CategorySearch')) $CategorySearch->Show(); ?>Also, CategorySearch is fully compatible with wp_list_categories()
This mean you can further tweak the category search results by adding additional parameters. Example:
$CategorySearch->Show('orderby=count');
Changelog
v1.0:
- Initial Release
You can also visit my other WordPress Plugins.
If you need WordPress Consulting, feel free to contact me.







22 Comments
Hi,
Is there any way to include category descriptions in the search parameters? What I'd like to do is the following:
Category name: Fruit
Category description: Oranges, apples, pears
When someone searches for 'apples', the 'Fruit' category shows in the results.
Is this possible with a tweak to the search code?
I've installed/activated the plugin and added the line of PHP in search.php. Nothing happens at all. WP 3.3.1. Anybody got any advice?
Hi,
Is compatible with Collapsing Categories ? On my website don't work
Please help
Yes this is working with WordPress version 3.
Hi, does this work on the latest version of WP?
help..how to add description on category search?
Hi Vladimir,
I 've read your book about Plugin-Dev. (thanks for writing)
I noticed your Plugin is only compatible up to WP 2.6 ? - Do you change this sometimes to 3.x...?
I cannot user your plugin now in a projekt becouse of this.
I want to user your plugin to search for posts of authors in special categories.
For this I did't want to use your widget because there are over 600 Categories. I only want to show Main-Category. Nice to have: A navigating to selectet subcategories with automatical newlines by widget space.
Your plugin is helpful, but can you make it better by showing the category of each item besides it? I think that will provide more information for users.
Hey Vladimir,
Are you planning to support plugin for at least WP2.8.4?
It doesn`t work on WPMU 2.8.4a. Any ideas?
The plugin should work fine on 2.8.4, haven't tried it on WPMU though.
Yes, you are right. Plugin works outside . So that problem solved.
Php tags cleaned. Outside >?php if (have_posts()) : ?<
Any chance a future release could also include tags too?
How do you make it so that it'll also search the category description instead of just the category title?
will this plugin work with 2.7.1?
One more question Vladimir - If there are no matching categories in the search results, how can I display "no matches"?
I had the same question as David...is there a way to do this?
Thanks!
How to search by select multiple category....
One more question Vladimir - If there are no matching categories in the search results, how can I display "no matches"?
Beautiful Vladimir! I've been searching for solution like this forever. I'll test for a while and then make donation.
Question - How can I make multiple search results templates with this? For example, one template would show just your category names as results. Other template would show usual post results.
Excellent. Thanks for that. I'll download this and check it out.
Screenshot uploaded I hope it speaks more then 1000 words :)
Your plugin sounds interesting but I don't understand enough of how it works to spend the time to download and integrate it. If you provided some examples that might help.
Thanks,
David