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:
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
[metaslider id=946]
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
Links
– Official Documentation
– WordPress.org Plugin
– Github Project
Nick Ginargiros
Dear Ross,
Your plugin is great! Thank You.
I am facing a styling issue… As you can see in the attachments… I am using custom taxonomies and my terms are really long. So, I changed thru custom css all elements “display: inline-block” to “display:block”. I would like the Headers and the box elements to be under “Theaters Guide”, in my widget area, in order to have more space for my long terms. As you can see google chrome faces different issue than mozilla.
Screenshots
http://imgur.com/a/Tm5HP
I will really appreciate your help.
Thank You in advance.
Ross
Hey there, this is really a CSS issue – I would suggest to look at the css option `max-width` – I’m afraid this is something you’ll need to figure out yourself as its quite specific to your setup.
Thanks
Shanna
I don’t have the settings needed to actually use plugin. No add new form, or any of those settings seen in the demo video. Just the Search & Filter tab with details on how to use the plugin. I’m using the twenty fourteen theme
Ross
It sounds like you are looking at the pro docs and you have S&F free installed – free uses just a shortcode described here: http://docs.designsandcode.com/search-filter/ Thanks
Andrew Levy
When i submit my search results via the search bar or category selector. it redirects me to a new URL. obviously this URL has no template and the search results look terrible. What is a way around this?
Ross
S&F free uses standard WP urls, such as taxonomy archives or the search page. Therefor if you do not have a template at the URLs its likely your theme is missing them, as there is a minimum set that themes are required. In this case you’ll have to create them yourself – more info about the template hierarchy:https://developer.wordpress.org/themes/basics/template-hierarchy/
Nadja
Hi Ross,
Your plugin is exactly what I’m looking for 🙂
Do you know if it will work with the QODE theme running on wordpress?
If I want a similar configuration like this:
http://demo.designsandcode.com/sfpro-movie-reviews/search/?_sft_genre=adventure&_sfm_oscar=0+10
will the Pro Version do this?
Thanks already
best
Nadja
http://www.akademiedervielfalt.at/?page_id=15464
Ross
Hey Nadja
It should work with any theme. You can get the search form looking the same no problem using the drag and drop builder – but the style & layout of results will either have to be based on a template in your theme (where there may be compatibility issues) or you can create your own template (templates are completely customisable using the same code as creating standard WordPress templates).
Thanks
Caleb
I was wondering how to exclude specific categories from showing up on the category filter on this plugin? Cheers
Ross
For now this is only available in the pro version as an option.
Thanks
Niels
Can you link 2 taxonomies so when e.g. you have football teams in different countries, you can select a country and in the next taxonomy it only shoes the teams linked to that country?
Ross
Yup – almost – just check the movie demo – demo.designsandcode.com/sfpro-movie-reviews/search/ – try to change “film certificate” and notice how the genres change.
Thanks
Niels
Okay, and how can I do this with my website?
Niels
Ross, how can I do this at my website?
Wil Ransz
Hello,
The following shortcode works great except for the operators:
[searchandfilter fields=”brands,category,post_tag” types=”checkbox,checkbox,checkbox” headings=”Brands,Categories,Keywords” submit_label=”Select themes” hide_empty=1,1,1 operators=”AND,AND,AND”]
No matter, what I try (one string, three string, caps or not), the result is an or/or/or list. Is it me, or is it the bug you are referring to.
Thanks,
Wil Ransz
Ross
Hi there
Its recently been brought to my attention a bug in the plugin makes the operators case sensitive – which means they must actually be lowercase “and,and,and” – I’ll be fixing this shortly so case does not matter again.
Thanks
Daniel Gadd
It shows 404 and cant figure out who. It does it only with Job Listings. It even did it with on specific category name and not with another ?
Ross
If you are using S&F free can you open a support ticket here: https://wordpress.org/support/plugin/search-filter
Thanks
Abdul Mannan
Hi.
Thanks for such a great plugin. I have only one question. Is it possible to add the archive dropdown as well within the filter ? Archive dropdown is the default one but i wanted to use that within the your filter form. So that i can select category, month and hit Submit.
Anxiously waiting for your reply.
Regards,
Abdul Mannan
Ross
Its a good suggestion and been on my to do list for a while – although I can’t say when that will be exactly.
Abdul Mannan
Thanks for replying. Really appreciate that.
Well whenever you will update the plugin with this feature, please remember to leave a message here 🙂
Regards,
Abdul Mannan
Gavin
Hi Ross
My previous question seems to have been deleted…
I’m using the free version of the plugin, searching based on two categories. I’ve noticed that the searched field will only persist (after searching) in one of the two dropdown boxes. Is this intentional/easy to fix? Is it something that is working properly on the pro version?
Many Thanks
Gavin
Ross
Hey Gavin
I’m not sure about your issue, but no such issue exists in Pro – if you do have any issues we’ll provide support to fix 🙂
Thanks
Ellie
Made good progress using this helpful plugin. I tried to add the option for “operators=”,OR”” though and it seemed to have no effect. Then I noticed that although you list this option on the documentation page, it isn’t listed in the plugin page itself. Is this option actually available? I hope so since I think I won’t be able to use the plugin if it only returns AND results for multiple checkboxes.
Thanks for making this!
Ross
The AND/OR option does work, although someone opened a bug on the forums mentioning it seemed to be case sensitive (it shouldn’t!) – try with lowercase and/or
Thanks
Scott
Can I include only certain post types in the form? I don’t want pages/posts to show but just my custom post types.
Ross
Yup just check the `post_types` option:
http://docs.designsandcode.com/search-filter/#options
giuseppe
Hi,
how do I change the text in the dropdown “all categories” “All tags” “All post types” with a text at will?
Ross
Check the docs – what you want is the `all_items_labels` variable – http://docs.designsandcode.com/search-filter/
PB
Hi there,
I’ve successfully added the short code to the page I want it to appear on by using the docs, but when I try to filter it it shows no results when there should be.
What does “use within a theme file mean” in the docs? Do I need to add that code somewhere too?
Thanks!
Ross
— edit – wrong post previously – try updating to the latest version of the plugin and let me know.
Thanks
Geoff
i want to add dropdown author, how can i do that?
Ross
There is no author option in the Free version, but its available in Pro.
Thanks
Hovhannes
You can add a custom taxonomy with the label author and then add it to a searchfilter shortcode.
Ross
Sure I think you are looking for the option `all_items_label` in the docs: http://docs.designsandcode.com/search-filter/
Ricardo Rodrigues
HI.
I need to do a filter like that one http://zoerooney.com/portfolio/ or that one http://www.manviacondutas.com/index.php?pg=4&lg=1
with the plug in search & filter i can do that?
Thanks a lot
Ross
Yeah sure, you can do something similar to both of those
CuponsWall
I am not a php developer, I active this plugin but i don’t how to use this code on my theme
Ross
Please check the docs – http://docs.designsandcode.com/search-filter/
Paul
Hi there,
Does the Pro version of your Search & Filter plugin support custom fields (i.e. those created in Advanced Custom Fields – ACF)? I think that the standard version of your plugin does not, is that correct?
The plugin looks great for my needs if it does support ACF.
Many thanks for your time,
Paul
Ross
Yup, if you check the features list it supports the basic types 🙂 Thanks
Alex
Hello dear Ross, I have some specific problem with search and filter. I have custom post types divided into several categories under one custom taxonomy. Categories have sub categories, and want to use AND operator to have a results. Problem is, when I select for example in first field (multiselect) some sub-category, ajax renders the result corectly. But when I select second field and sub-category, in the url it removes first selected and leaves just second selected – it acts like I use OR, not AND. If I remove first field selected sub-category, it removes everything from the url, although still second field haves sub-category selected. Searched everywhere for an answer but just couldn’t find the solution. Regards, Alex
Ross
Hi there – please open a ticket in support: https://www.designsandcode.com/forums/forum/search-filter-pro/support/
Regev
Hey,
I have the search & filter pro.
I created a form and added a taxonomy dropdown. the problem is that it is empty although the taxonomies are not empty.
I tried to install the regular search & filter and then the taxonomies are shown.
What could be the problem?
thanks
Ross
Sounds like you are using an old version – open a ticket in the forums and we can help more: http://www.designsandcode.com/forums/forum/search-filter-pro/support/