Designs & Code

Design, Development and WordPress

Posted by & filed under CSS, Development, HTML, PHP, Plugins, WordPress.

WordPress Search & Filter is a simple search and filtering plugin.  It is essentially an advancement of the WordPress search box, adding taxonomy filters & post filters to really refine your searches.

You can search by Category, Tag, Custom Taxonomy, Post Type or any combination of these easily – you can even remove the search box and simply use it as a filtering system for your posts and pages.

After my own requirements of needing some granular filters applied to my searches I tried a few free plugins online and found none quite did what I need, there are many plugins that enhance the search box, and there are others that allow filtering of taxonomies but none that combine the two and are free (as far as I can tell).

The best free plugin I found was the Query Multiple Taxonomies Plugin – however it did not allow you to search at the same time as applying the filters.

And so the Search & Filter plugin was born:

 

Download Wordpress Search & Filter

Grab the download any of these sources:

WordPress Plugins GitHub

How To Use

To display Search & Filter all you need to do is a use a shortcode:

[searchandfilter fields="search,category,post_tag"]

This will display a search box, a category dropdown and a tag dropdown. You can use the shortcode within posts/pages and widget areas.

To use this within a theme file you simple need to call the `do_shorcode` function with the shortcode above within the theme file:

<?php echo do_shortcode( '[searchandfilter fields="search,category,post_tag"]' ); ?>

Documentation

Official documentation can be found on our docs site which contains usage examples and advanced settings & features.

Screenshots

Need More?

Get the pro version:

  • Search with Ajax 🙂
  • Filter by Date, Author & Post Meta / Custom Fields
  • Sort results by Post Meta / Custom Fields
  • Range Sliders and Range Fields for Meta Data
  • Drag and Drop user interface – makes it incredibly easy to build a granular search form
  • Works with WooCommerce, Advanced Custom Fields Plugin & more
  • Dedicated Support

Find out more

Links

– Official Documentation
WordPress.org Plugin
Github Project

317 Responses to “WordPress Search & Filter – A Simple Search and Filtering Plugin for Taxonomies”

  1. Jason Lawton

    When I try to pass multiple tags, it works properly, like ?tag=term1+term2.

    But if i have a /category/cat1+cat2/?tag=term1+term2&…

    The get_query_var(‘category’) only returns ‘cat1’, not ‘cat1+cat2’ as is expected. Any suggestions for a fix?

    Reply
  2. Hi there,

    I have been using the plugin for some time to display my results as a combination of tags, taxonomies and formats – it works great! I have now added dates to the mix (date range) so it kinds of acts like my archives. It works beautifully BUT I do have a slight display issue on my mobile device (iPhone6s). The date field is displayed and very narrow line, rather than a field in which I would expect to see dd/mm/yyyy. Once you click on it works absolutely fine, it will then expand to show the date you’ve chosen from the calendar and remain the right width. It’s ok in the browser, the problems in on my mobile device only. Is that something I can prevent from happening? Sorry my blog is a family blog and is password protected, so can’t demonstrate.

    Reply
    • Ross

      I’m not sure why, we use the HTML 5 date field, which means its interpreted by the browser viewing the search form. Mobile browsers can do things radically different because of the UI. S&F Pro is not affected by this as we use a jQuery date picker. Hope that helps.

      Reply
      • emilk

        Since posted it I’ve forced this particular date field height in CSS so it shows as a proper field now rather than a narrow line 😉 thanks for your response! The date picker still doesn’t work properly on all browsers but this has been explained so I know why. :

        Reply
  3. Rub

    How do I can get support and register to the forums?
    All the forums are only for the pro version?

    Reply
    • Ross

      The forums are pro only and free support is currently on hold until we release the next version – this will be in the next few months and will be a complete rewrite 🙂

      Reply
  4. Damon

    How can I use the post date to filter posts based on an Advanced Custom Field called start_date.

    Reply
  5. Akhila c.c

    Hi,
    I upload the search & filter plugin.when adding different taxonomies into it some are displayed as ‘All Terms’ and others are displayed correctly. Why it displayed like that.how can i change it.

    Thanks
    Akhila

    Reply
  6. Nikos Kapoglou

    Hi there. Just downloaded the plugin which actually looks perfect. The thing is that i just installed it but in the back end of wordpress i see only the “search & filter” menu but no settings submenus.

    Do i need to do something to appear?

    I am installing in wp 4.6.1 and i am using the avada theme

    Thank you in advance and i look forward to your answer.

    Reply
  7. Hello! When I use the search & filter I would like all the blog posts that fit the categories/tags to show up. As it is, only the most recent post fitting the search & filter categories shows up and then one must click on newer or older post to see the others. Is there a way to fix this? Thank you!

    Reply
    • Ross

      The amount of results shown is controlled by your WP settings, head to `settings` -> `reading` and change the option `Blog pages show at most`. Thanks

      Reply
  8. Nati

    Hi,

    when I choose a category out of the list and then click “submit” I only get a blank page. Why?

    Thanks for your help!

    Reply
    • Ross

      Ensure WP debugging is enabled, and try to look for errors – if you get a “headers already sent” error, then it means you have an error in your setup, and S&F can’t redirect to the results page. In this case you must find the cause of your error and resolve in order to allow for S&F t work.

      Reply
  9. Mark

    Hi there, I’m trying to figure out a way to combine the results of two taxonomies. As it is right now, “taxonomy1/term1?taxonomy2=term2” and what I’m after “taxonomy1/term1+taxonomy2=term2”

    Reply
    • Ross

      With S&F free, the search will go to either the search page, or a taxonomy archive page (depending if you have taxonomy filters)… So for search page you need to edit `search.php`, and for the taxonomy archive it will likely be `archive.php` – however, your theme could be using other templates for these pages according to the template hierarchy – https://developer.wordpress.org/themes/basics/template-hierarchy/

      S&F Pro actually has a setting which simplifies this, you just specify the name of your template and this file will always be used for your search results.

      Thanks

      Reply
  10. Hi, I tryed to modify the “All” word in front of string “All categories” (Dropdown lists) to “Tutti”, because I wsant to translate it in italian but with no success. Where I have to change to have it? Thanks.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *