Support » Fixing WordPress » Show categories in search result

  • Hi ya

    When performing a search on my blog, then I want it to show what categories that contains posts, which matches the search-query.

    I want to use this category information, so when clicking the link of a category in the search-result, then it will limit the search to that category alone. And when displaying posts that matches a certain tag, then one can give the user the option to only display tagged posts within a matching category.

    I know I can get the category of a post within the loop, but I want to list all the matching categories before entering the search result loop.

    Is there an existing simple hack or plugin which can provide this kind of functionality ?

    Thank you in advance


Viewing 4 replies - 1 through 4 (of 4 total)
  • bump



    Well created a plugin myself, so relevant categories are shown in the search result:

    does anyone know how to do this? this is exactly what I’m after…

    snakefoot – come back!

    My blog is pretty much locked to WP 2.0 because of bug #5034. The plugin I have created doesn’t make use of the new category and tagging system introduced with WP 2.3+, or supports the Widget interface.

    When I get lots of time on my hands then I will consider updating the plugin to work with the latest version of WP.

    The plugin I have created pretty much repeats the query for posts, but without the post-limit, and then iterates through all the posts and groups them by category.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Show categories in search result’ is closed to new replies.