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.

 Search Categories

Screenshot from emuhq.com using this plugin

Download

dl Search Categories

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:

    $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.

15 Comments

  1. Daniel
    4 weeks ago

    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.

  2. Deluxe Blog Tips deluxeblogtips.com
    Apr 24th, 2010

    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.

  3. Sergey
    Oct 19th, 2009

    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?

    • Vladimir prelovac.com
      Oct 20th, 2009

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

      • Sergey
        Oct 20th, 2009

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

        • Sergey
          Oct 20th, 2009

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

  4. Chris Tew munchweb.com
    Aug 5th, 2009

    Any chance a future release could also include tags too?

  5. Echo
    Jun 19th, 2009

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

  6. sam
    May 29th, 2009

    will this plugin work with 2.7.1?

  7. Kristen
    Apr 24th, 2009

    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!

  8. David
    Feb 12th, 2009

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

  9. David
    Feb 12th, 2009

    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.

  10. David Potter dpotter.net
    Jun 24th, 2008

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

  11. Vladimir prelovac.com
    Jun 24th, 2008

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

  12. David Potter dpotter.net
    Jun 24th, 2008

    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

Have your say

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

*
*

Subscribe without commenting

About Vladimir

vladimir prelovac Hi! My name is Vladimir Prelovac. I am a computer engineer by profession and an adventurer by state of mind.

"I would love to change the world, I just don't have the source code yet."

Books by Vladimir

WordPress Plugin Devleopment Book WordPress Plugin Development: Beginner's Guide

Published by Packt Publishing, available online through Amazon. Click the image for more information.

Consulting Services

Professional WordPress Services, including custom developed plugins and themes

Expert on-site WordPress SEO consulting and an 'out-of-the-box thinking' approach to problems