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:
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"]' ); ?>
Official documentation can be found on our docs site which contains usage examples and advanced settings & features.
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
– Official Documentation
– WordPress.org Plugin
– Github Project
i want to have two drop downs of categories in the first i want to have just cat1 cat2 cat3 and the second drop down i want to have cat 4 cat 5 cat 6 is it possible ? i down want to use taxonomies i just want to devide categories
I’m afraid a single category cannot be broken out into multiple fields – for this we suggest splitting your content into multiple taxonomies so that you may use multiple fields – they will also then behave dynamically – showing and hiding options in each field as a usermakes selections… However, as you mention, you do not wish to break your categories out in to taxonomies.
Everything about this plugin works except the search function. Unless I’m doing something wrong, it seems useless.
For example, if I limit my category to my about me section and I search for “squat,” the only page that should come up is the page on what I do for exercise. Instead, it turns back every single page in my “about me” section, which includes several articles in which the term “squat” does not appear anywhere.
Hey Chris thats certainly not usual behaviour. If you’re referring to S&F from the repo can you open a ticket here and provide a link? – ttps://wordpress.org/support/plugin/search-filter thanks
I have downloaded the free version and cannot seem to get either a custom field or custom taxonomy to appear in search list. Other fields/taxonomies appear fine. I’m hoping it’s something simple I’ve overlooked. Thank you.
Hey Jennifer – the free version does not work with custom fields – this is available in pro 🙂
I’m using your free version and it’s really awesome, was just wondering if it’s possible to change the default value for tags? So instead of it saying “All Tags” it would say something else or is that a pro feature?
Thanks a lot!
This is available in free – check the option `all_items_labels` – http://docs.designsandcode.com/search-filter/#options
Hey! I`m using this code. And it`s really cool.
[searchandfilter fields=”category,category” submit_label=”Filter” headings=”City,Occupation”]
But I have the only question.
Can I choose ON MY OWN what particular categories will be presented in each field? (i mean not all categories, but just some of them). By id or somehow?
Thank you very much.
Excluding / including specific categories is only available in Pro
When I include the shortcode in a page I get the search options but when Submit is clicked nothing happens–no results. I’m using [searchandfilter fields=”category,post_tag”]
Thanks for your useful plugins.
I have used it on my local machine and everything is working as well.
But while uploaded on server, it shows an error like this:
Warning: Cannot modify header information – headers already sent by (output started at /home/merx/public_html/tour.rudeki.com/wp-content/themes/tour/template-hotels.php:4) in /home/merx/public_html/tour.rudeki.com/wp-includes/pluggable.php on line 1167
Any help please?
It looks like you have a PHP error in your template – `template-hotels.php` – this error is preventing the page from being redirected (and in turn, prevents S&F from working). Thanks
Hello, I try to set up the search only for medias “ex PDFS”, but I can not do this, any tip for make this possible?
I believe only S&F Pro supports searching attachments / media
I am trying out the latest version from WordPress – 1.2.9 and cannot get the post_types to work. I am using this shortcode in a text widget…
[searchandfilter fields=”category,post_types” post_types=”gpage” types=”checkbox” hierarchical=”1″ hide_empty=”1″]
and everything works apart from it returns search results from all posts. I tried adding fields=”gpage” too and it created the dropdown but again made no difference to the search results. Is this filter only available to pro? If so, apologies as I missed that!
It sounds like you may have a filter on your query (from your theme) that changes all queries to search in all post types.
By default, WP will use the post type `post`, and many themes expand this by using a filter like `pre_get_posts` – but it seems like this is overriding the S&F setting for the post type in the query – check your `functions.php` for anything like `pre_get_posts` as this may be the culprit.
I would like to know if the Search-Filter Pro version is able to make a search for WordPress user roles and user profile meta data.
This search and results would be needed for front-end display only and not in the WordPress Dashboard.
Hey Paul, I’m afraid S&F does not search WP meta data – thanks
Hello – I’m looking to purchases this and have just downloaded the free version. However, when clicking on the admin option, I’m only directed to the overview page with no ability to actually create a filter.
In free, the admin page is pretty much just informational – to create a search form check here: http://docs.designsandcode.com/search-filter –
The pro version has a completely different admin area, and an in depth UI for creating search forms 🙂
how can we change the size of the dropdown title…cause “all items” in English corresponds to “Toutes les catégories” in French and it ‘s too big to appear completely…so i d like to change the size of the dropdown itself OR change the item’s size. thanks in advance
This would just be some CSS, something like:
Of course this will change the width of ALL the dropdowns on your site, so you will have to use the correct class around the select, which is based on your field name I believe.
Is this plugin compatible with wordpress network(MU)?
Yup it works with multisite – but it doesn’t search across all sites – each site has their own separate environement
I can t quite seem to figure out how to add ACF custom fields to the shortcode, anyone?
ACF fields are not supported in S&F free I’m afraid – only available in pro
How can I use this to only show a custom post type that I have created?
For example, I want to display a search and filter on a “products” page which only filters and searches for posts which are in my “products” custom post type along with their relevant tags and categories.
Hope you can help! 🙂
Please check the `post_types` option – http://docs.designsandcode.com/search-filter/#options
It looks like an awesome plugin. I would like to know if its drill down capable?
Literally working on htis feature for the next release 🙂
Hi…do you have an ETA? I’m keen
it would be awesome to see a list of sites using this filter. i want to see its power in a beautiful set up. id really like something like this: http://www.soaptheme.net/wordpress/travelo/?post_type=tour&s&view=grid
i have purchased the plugin but have yet to use it on my sites.
Is it posible to have the search form in a line. I guess it can be done via CSS.
And can the results be displayed horizontally with arrows to click on the left and right to see more, like in a slider.
This would be a custom implementation, however I do have some CSS handy that allows S&F to be displayed horizontally.
Hi Ross, is it possible for you to post your CSS code that allows S&F to be displayed horizontally? Thanks!
The free version automatically display horizontally unless it is in a widget area – so I’m guessing you mean Pro – if so please open a ticket here and I’ll be happy to share the code with you: https://www.designsandcode.com/forums/forum/search-filter-pro/support/ Thanks
i have a question. I´m not shure if i understand the thinks right. When i install the search & filter plugin i need another plugin to tag my text or my products, for this reason the search & filter plugin knows how to relate the right product to the right categories. And the other plugin could be TinyMCE. Right?
sorry for my broken english. I hope you can understand my words.
Thanks a lot
You will need another plugin sure, see here for details: http://www.designsandcode.com/documentation/search-filter-pro/getting-started/adding-new-fields/#Creating_New_Taxonomies 🙂
I’m trying to set a filter by words of type “search” that show results related in a taxonomy.
I would like to know if it is possible to add a parameter to the search taxonomy .
[searchandfilter fields=”search” submit_label=”Search” post_types=”post”]
Taxonomy: Tax1, Tax2, Tax3….
I would get results related to the search word and also contain “Tax1”
Current url: …?s=software&post_types=post
Url that i’d like to get: …?s=software&post_types=post&taxonomy=tax1
Including / excluding specific taxonomies is available in the pro plugin.