Search Categories

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 using this plugin


Installation & Usage

  1. Upload the whole plugin folder to your /wp-content/plugins/ folder.
  2. Go to the Plugins page and activate the plugin.
  3. Use the Options page to change your options
  4. 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:




  • Initial Release

You can also visit my other WordPress Plugins.

If you need WordPress Consulting, feel free to contact me.


  1. Apr 13th, 2015 2:11 PM

    很伤心,作者不回复啊。很伤心,作者不回复啊。Screenshot uploaded I hope it speaks more then 1000 words :)

  2. Jun 10th, 2012 4:01 PM

    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?

  3. Ginny
    Feb 17th, 2012 6:30 AM

    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?

  4. Lucian
    Jan 24th, 2012 12:29 PM

    Is compatible with Collapsing Categories ? On my website don't work
    Please help

  5. Leo
    Mar 15th, 2011 11:46 AM

    Yes this is working with WordPress version 3.

  6. Jonny
    Jan 14th, 2011 11:00 PM

    Hi, does this work on the latest version of WP?

  7. Oct 24th, 2010 8:21 AM to add description on category search?

  8. Daniel
    Aug 9th, 2010 6:46 PM

    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.

  9. Apr 24th, 2010 7:03 PM

    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.

  10. Sergey
    Oct 19th, 2009 6:03 PM

    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?

    • Oct 20th, 2009 12:05 AM

      The plugin should work fine on 2.8.4, haven't tried it on WPMU though.

      • Sergey
        Oct 20th, 2009 12:35 AM

        Yes, you are right. Plugin works outside . So that problem solved.

        • Sergey
          Oct 20th, 2009 12:36 AM

          Php tags cleaned. Outside >?php if (have_posts()) : ?<

  11. Aug 5th, 2009 11:03 PM

    Any chance a future release could also include tags too?

  12. Echo
    Jun 19th, 2009 10:17 PM

    How do you make it so that it'll also search the category description instead of just the category title?

  13. sam
    May 29th, 2009 6:51 AM

    will this plugin work with 2.7.1?

  14. Kristen
    Apr 24th, 2009 9:04 PM

    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 there a way to do this?


    • Nitish
      Aug 24th, 2011 3:43 PM

      How to search by select multiple category....

  15. David
    Feb 12th, 2009 10:48 PM

    One more question Vladimir - If there are no matching categories in the search results, how can I display "no matches"?

  16. David
    Feb 12th, 2009 9:55 PM

    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.

  17. Jun 24th, 2008 6:16 PM

    Excellent. Thanks for that. I'll download this and check it out.

  18. Jun 24th, 2008 11:23 AM

    Screenshot uploaded I hope it speaks more then 1000 words :)

  19. Jun 24th, 2008 5:58 AM

    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.


Have your say

Your email is never published nor shared. Required fields are marked *


  • ManageWP