WordPress.org

Ready to get started?Download WordPress

Ideas

Boolean and multiple category search

  1. Christiaan
    Member

    12345

    I'd like to be able to call up all posts belonging to any combination of categories (instead of one category at a time), and then to do a word search of those categories and then another word search based on that search, and so on.

    (maybe, as well as categories, tags and html meta keywords as well.)

    Posted: 7 years ago #
  2. cmorgan
    Member

    12345

    Yeah. I can see people wanting all different sorts of interfaces to it, so I'm not sure it could be included in basic templates, but giving us the basic functionality would be very useful.

    Posted: 7 years ago #
  3. nextwave
    Member

    12345

    I've been contemplating building a plug-in for adding this type of boolean search-
    two clients come to mind:
    a scooter shop- which would post each scooter as a post- would be able to search for Make, New or used, Price (with ranges), year. The categories would be entered like categories and sub categories- with a data set showing up in the dashboard underneath the post.
    A real estate company could do the same for listings:
    Type of property, size in sq. ft, price, zip code etc.
    all the categories could be entered by the user- and then create a sidebar based search parameter only for the posts that fit.

    Posted: 7 years ago #
  4. nextwave
    Member

    12345

    A good example of Boolean search is shown on the WordPress theme viewer: http://themes.wordpress.net/

    Posted: 7 years ago #
  5. buzink
    Member

    12345

    I would like to be able to create blog-pages that show posts from two or more specific categories. This could be done with the above requested script and proper url- rewriting.

    /search.php?search=gnome&cats=5,6,8
    would become
    /search/ubuntu/debian/mandrake/gnome

    /search.php?cats=5,6,8
    would become
    /tags/ubuntu/debian/mandrake/

    while the normal category pages could be
    /tag/debian/

    and the normal search results page:
    /search/gnome

    The only thing that has to be done is change the search-script so that it recognizes the cats GET variable in the url and change the output according to it.

    Posted: 7 years ago #
  6. annfield
    Member

    12345

    “This idea is under consideration”
    Is there anyway that one could contribute to the development of this feature?
    As previously mentioned the binary search functionality of the theme viewer is a good (if not already complete) starting point.
    Especially with the new tag and category handling of WP 2.3.
    Anybody know the initial developer of this feature and how to get in contact with him/her.

    Posted: 6 years ago #
  7. jeremyduffy
    Member

    This isn't exactly what you were asking for, but it's similar. My page is an image gallery where each post is a different image. I use categories to mark which characters from the show are in which picture and perhaps other aspects (like season 1 and season2). If I want a picture of season1 and this particular character, I wound need to select multiple categories and then have only those posts show. I've got the code that does it here:

    http://www.jeremyduffy.com/computers-internet/wordpress-stuff/wordpress-multiple-categories/

    Posted: 6 years ago #
  8. This plugin might work: http://www.zirona.com/software/wordpress-advanced-search/

    Posted: 6 years ago #
  9. Jen Mylo
    Key Master

    Closing thread b/c can be done with a plugin, but FYI, better search options should make it into core over the next few versions.

    Posted: 5 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.

  • Rating

    12345
    107 Votes
  • Status

    This is plugin territory